Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: components/bookmarks/browser/bookmark_node_data_views.cc

Issue 2322253004: Drag and dropping text, parsable as url (Closed)
Patch Set: initial patch for windows Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/bookmarks/browser/bookmark_node_data_views.cc
diff --git a/components/bookmarks/browser/bookmark_node_data_views.cc b/components/bookmarks/browser/bookmark_node_data_views.cc
index a56c0d2d8423a967c7906e4c30749cd8f8a94b6b..ca46b189f6e13e2bdfafca1b549c99e928e5b6f2 100644
--- a/components/bookmarks/browser/bookmark_node_data_views.cc
+++ b/components/bookmarks/browser/bookmark_node_data_views.cc
@@ -57,8 +57,9 @@ bool BookmarkNodeData::Read(const ui::OSExchangeData& data) {
// See if there is a URL on the clipboard.
GURL url;
base::string16 title;
- if (data.GetURLAndTitle(
- ui::OSExchangeData::CONVERT_FILENAMES, &url, &title))
+ if (data.GetURLAndTitle(ui::OSExchangeData::CONVERT_FILENAMES,
+ ui::OSExchangeData::PARSE_TEXT_AS_URL, &url,
+ &title))
ReadFromTuple(url, title);
}

Powered by Google App Engine
This is Rietveld 408576698