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

Unified Diff: chrome/browser/ui/cocoa/drag_util.mm

Issue 2014733003: Removing parsing of text from pasteboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compilation fix Created 4 years, 6 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/cocoa/drag_util.mm
diff --git a/chrome/browser/ui/cocoa/drag_util.mm b/chrome/browser/ui/cocoa/drag_util.mm
index 77014dfee7ed3f3209e65edb1438fe750c92e2bf..c85af8b776db5129a016b5ae02712ac15bb8969d 100644
--- a/chrome/browser/ui/cocoa/drag_util.mm
+++ b/chrome/browser/ui/cocoa/drag_util.mm
@@ -96,7 +96,7 @@ void DrawTruncatedTitle(NSAttributedString* title, NSRect frame) {
} // namespace
GURL GetFileURLFromDropData(id<NSDraggingInfo> info) {
- if ([[info draggingPasteboard] containsURLData]) {
+ if ([[info draggingPasteboard] containsURLDataConvertingTextToURL:YES]) {
GURL url;
ui::PopulateURLAndTitleFromPasteboard(&url,
NULL,

Powered by Google App Engine
This is Rietveld 408576698