}
#if !defined(OS_MACOSX)
-void BookmarkNodeData::WriteToClipboard(ui::ClipboardType type) {
- DCHECK_EQ(type, ui::CLIPBOARD_TYPE_COPY_PASTE);
+void BookmarkNodeData::WriteToClipboard(ui::ClipboardType clipboard_type) {
+ DCHECK(clipboard_type == ui::CLIPBOARD_TYPE_COPY_PASTE ||
+ clipboard_type == ui::CLIPBOARD_TYPE_SELECTION);
ui::ScopedClipboardWriter scw(ui::Clipboard::GetForCurrentThread(),
- ui::CLIPBOARD_TYPE_COPY_PASTE);
+ clipboard_type);
// If there is only one element and it is a URL, write the URL to the
// clipboard.