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

Unified Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 135633002: Don't populate URL data in WebDropData when dragging files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 a05111f2d7507dc6f6c8af26c4139dafa3cd06fc..683d6a2cf3b4cbcecd0269335dc6d28e4eca7ccf 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -372,7 +372,8 @@ void PrepareDropData(DropData* drop_data, const ui::OSExchangeData& data) {
GURL url;
base::string16 url_title;
- data.GetURLAndTitle(&url, &url_title);
+ data.GetURLAndTitle(
+ ui::OSExchangeData::DoNotConvertFilenames, &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