Chromium Code Reviews| 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. |