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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.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: chrome/browser/ui/views/omnibox/omnibox_view_views.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
index 4ba3789b5d8183326b50af945843607092dbaabe..cc26c88e3a11ed2cf670b53af25ad1d3ff4b8070 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -807,7 +807,8 @@ int OmniboxViewViews::OnDrop(const ui::OSExchangeData& data) {
if (data.HasURL()) {
GURL url;
base::string16 title;
- if (data.GetURLAndTitle(&url, &title)) {
+ if (data.GetURLAndTitle(
+ ui::OSExchangeData::ConvertFilenames, &url, &title)) {
base::string16 text(
StripJavascriptSchemas(base::UTF8ToUTF16(url.spec())));
if (model()->CanPasteAndGo(text)) {

Powered by Google App Engine
This is Rietveld 408576698