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 db7b056258fd12016931be08ab10bd15306b8836..e2467e377cde2c52f343edae7f8a3b9a5f2bf709 100644 |
--- a/content/browser/web_contents/web_contents_view_aura.cc |
+++ b/content/browser/web_contents/web_contents_view_aura.cc |
@@ -373,6 +373,8 @@ void PrepareDragData(const DropData& drop_data, |
if (!drop_data.file_contents.empty()) |
PrepareDragForFileContents(drop_data, provider); |
#endif |
+ // We set the string before the URL because the URL also sets the string. We |
+ // want to prefer a custom string over the URL string so we add it first. |
Peter Kasting
2014/06/20 20:45:36
This comment lies. With your changes, SetURL() _d
|
if (!drop_data.text.string().empty()) |
provider->SetString(drop_data.text.string()); |
if (drop_data.url.is_valid()) |