| Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm
|
| index 4a120eaf18c940112485ed46e3b6a428ddb135cf..8418c0835238da088d5ba8fdfbdfcea28f3cb69f 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm
|
| @@ -704,12 +704,14 @@ static NSString* UnusedLegalNameForNewDropFile(NSURL* saveLocation,
|
| NSPasteboard* pboard = [NSPasteboard pasteboardWithName:NSDragPboard];
|
| NSFileManager* fileManager = [NSFileManager defaultManager];
|
|
|
| - if (![pboard containsURLData])
|
| + if (![pboard containsURLDataInTypeOrText])
|
| return NULL;
|
|
|
| NSArray *urls = NULL;
|
| NSArray* titles = NULL;
|
| - [pboard getURLs:&urls andTitles:&titles convertingFilenames:YES];
|
| + [pboard getURLsFromTypeOrText:&urls
|
| + andTitles:&titles
|
| + convertingFilenames:YES];
|
|
|
| NSString* urlStr = [urls objectAtIndex:0];
|
| NSString* nameStr = [titles objectAtIndex:0];
|
|
|