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

Unified Diff: ui/base/dragdrop/os_exchange_data_provider_win.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
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_win.h ('k') | ui/base/dragdrop/os_exchange_data_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/dragdrop/os_exchange_data_provider_win.cc
===================================================================
--- ui/base/dragdrop/os_exchange_data_provider_win.cc (revision 245050)
+++ ui/base/dragdrop/os_exchange_data_provider_win.cc (working copy)
@@ -386,10 +386,16 @@
return ClipboardUtil::GetPlainText(source_object_, data);
}
-bool OSExchangeDataProviderWin::GetURLAndTitle(GURL* url,
- base::string16* title) const {
+bool OSExchangeDataProviderWin::GetURLAndTitle(
+ OSExchangeData::FilenameToURLPolicy policy,
+ GURL* url,
+ base::string16* title) const {
base::string16 url_str;
- bool success = ClipboardUtil::GetUrl(source_object_, &url_str, title, true);
+ bool success = ClipboardUtil::GetUrl(
+ source_object_,
+ &url_str,
+ title,
+ policy == OSExchangeData::CONVERT_FILENAMES ? true : false);
if (success) {
GURL test_url(url_str);
if (test_url.is_valid()) {
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_win.h ('k') | ui/base/dragdrop/os_exchange_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698