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

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

Issue 2014733003: Removing parsing of text from pasteboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: splitting calls in two variations, to discass Created 4 years, 7 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/url_drop_target.mm
diff --git a/chrome/browser/ui/cocoa/url_drop_target.mm b/chrome/browser/ui/cocoa/url_drop_target.mm
index 00b11c1c9d60a84df24213e6891ea63880c0eacd..1bca23e90b0596db2692fbd7adfee052ead18827 100644
--- a/chrome/browser/ui/cocoa/url_drop_target.mm
+++ b/chrome/browser/ui/cocoa/url_drop_target.mm
@@ -84,10 +84,10 @@
NSPoint dropPoint =
[view_ convertPoint:[sender draggingLocation] fromView:nil];
// Tell the window controller about the dropped URL(s).
- if ([pboard containsURLData]) {
+ if ([pboard containsURLDataInType]) {
erikchen 2016/05/26 21:01:18 I don't think this is the right approach. If a use
NSArray* urls = nil;
NSArray* titles; // discarded
- [pboard getURLs:&urls andTitles:&titles convertingFilenames:YES];
+ [pboard getURLsFromType:&urls andTitles:&titles convertingFilenames:YES];
if ([urls count]) {
[[view_ urlDropController] dropURLs:urls inView:view_ at:dropPoint];
@@ -111,7 +111,7 @@
NSPasteboard* pboard = [sender draggingPasteboard];
NSArray *supportedTypes = [NSArray arrayWithObjects:NSStringPboardType, nil];
NSString *bestType = [pboard availableTypeFromArray:supportedTypes];
- if (![pboard containsURLData] && ![pboard stringForType:bestType])
+ if (![pboard containsURLDataInType] && ![pboard stringForType:bestType])
return NSDragOperationNone;
// Only allow the copy operation.

Powered by Google App Engine
This is Rietveld 408576698