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

Unified Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.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
« no previous file with comments | « chrome/browser/ui/cocoa/drag_util.mm ('k') | chrome/browser/ui/cocoa/url_drop_target.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
« no previous file with comments | « chrome/browser/ui/cocoa/drag_util.mm ('k') | chrome/browser/ui/cocoa/url_drop_target.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698