| 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 455280ce6ef23e06c07af110c69335476cbd805e..1ad5ae26ac07f9aa7d3b536a8a00d53de4a7ca24 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
|
| @@ -661,12 +661,15 @@ static NSString* UnusedLegalNameForNewDropFile(NSURL* saveLocation,
|
| NSPasteboard* pboard = [NSPasteboard pasteboardWithName:NSDragPboard];
|
| NSFileManager* fileManager = [NSFileManager defaultManager];
|
|
|
| - if (![pboard containsURLData])
|
| + if (![pboard containsURLDataConvertingTextToURL:YES])
|
| return NULL;
|
|
|
| NSArray *urls = NULL;
|
| NSArray* titles = NULL;
|
| - [pboard getURLs:&urls andTitles:&titles convertingFilenames:YES];
|
| + [pboard getURLs:&urls
|
| + andTitles:&titles
|
| + convertingFilenames:YES
|
| + convertingTextToURL:YES];
|
|
|
| NSString* urlStr = [urls objectAtIndex:0];
|
| NSString* nameStr = [titles objectAtIndex:0];
|
|
|