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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.cc

Issue 137783015: Merge 244538 "Don't populate URL data in WebDropData when draggi..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/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/tabs/tab_strip.cc
===================================================================
--- chrome/browser/ui/views/tabs/tab_strip.cc (revision 245050)
+++ chrome/browser/ui/views/tabs/tab_strip.cc (working copy)
@@ -1410,7 +1410,9 @@
base::string16 title;
// Check whether the event data includes supported drop data.
- if (event.data().GetURLAndTitle(&url, &title) && url.is_valid()) {
+ if (event.data().GetURLAndTitle(
+ ui::OSExchangeData::CONVERT_FILENAMES, &url, &title) &&
+ url.is_valid()) {
drop_info_->url = url;
// For file:// URLs, kick off a MIME type request in case they're dropped.
@@ -1450,7 +1452,9 @@
GURL url;
base::string16 title;
if (!file_supported ||
- !event.data().GetURLAndTitle(&url, &title) || !url.is_valid())
+ !event.data().GetURLAndTitle(
+ ui::OSExchangeData::CONVERT_FILENAMES, &url, &title) ||
+ !url.is_valid())
return ui::DragDropTypes::DRAG_NONE;
controller()->PerformDrop(drop_before, drop_index, url);
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.cc ('k') | chrome/browser/ui/views/toolbar/home_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698