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

Unified Diff: chrome/browser/ui/views/frame/browser_root_view.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: Fix Blink style enums 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/frame/browser_root_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_root_view.cc b/chrome/browser/ui/views/frame/browser_root_view.cc
index 06ded062c3c6e70e5bfc45061ca728f135eb673f..f7ddec3f5e4e16cd3c8f775326277970776facb1 100644
--- a/chrome/browser/ui/views/frame/browser_root_view.cc
+++ b/chrome/browser/ui/views/frame/browser_root_view.cc
@@ -96,7 +96,9 @@ int BrowserRootView::OnPerformDrop(const ui::DropTargetEvent& event) {
GURL url;
base::string16 title;
ui::OSExchangeData mapped_data;
- if (!event.data().GetURLAndTitle(&url, &title) || !url.is_valid()) {
+ if (!event.data().GetURLAndTitle(
+ ui::OSExchangeData::CONVERT_FILENAMES, &url, &title) ||
+ !url.is_valid()) {
// The url isn't valid. Use the paste and go url.
if (GetPasteAndGoURL(event.data(), &url))
mapped_data.SetURL(url, base::string16());
« no previous file with comments | « chrome/browser/bookmarks/bookmark_node_data_views.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698