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

Unified Diff: content/browser/web_contents/web_contents_view_aura.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: content/browser/web_contents/web_contents_view_aura.cc
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index a751450470b4e1b8504cc1deeb804cc4c3ddbcb4..a23c3e4d93414be07c7385ca24b231789cd1a540 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -328,8 +328,8 @@ void PrepareDropData(DropData* drop_data, const ui::OSExchangeData& data) {
GURL url;
base::string16 url_title;
- data.GetURLAndTitle(
- ui::OSExchangeData::DO_NOT_CONVERT_FILENAMES, &url, &url_title);
+ data.GetURLAndTitle(ui::OSExchangeData::DO_NOT_CONVERT_FILENAMES,
+ ui::OSExchangeData::PARSE_TEXT_AS_URL, &url, &url_title);
if (url.is_valid()) {
drop_data->url = url;
drop_data->url_title = url_title;

Powered by Google App Engine
This is Rietveld 408576698