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

Unified Diff: content/browser/web_contents/web_drag_dest_mac.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/chrome_tests_unit.gypi ('k') | third_party/mozilla/NSPasteboard+Utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_drag_dest_mac.mm
diff --git a/content/browser/web_contents/web_drag_dest_mac.mm b/content/browser/web_contents/web_drag_dest_mac.mm
index ec3b00035ddbea2fe261fc4456aab6320a9c8158..07b04ad7eb1c924892cc694f02c51d5655325c41 100644
--- a/content/browser/web_contents/web_drag_dest_mac.mm
+++ b/content/browser/web_contents/web_drag_dest_mac.mm
@@ -142,7 +142,7 @@ int GetModifierFlags() {
return NSDragOperationNone;
if ([self onlyAllowsNavigation]) {
- if ([[info draggingPasteboard] containsURLData])
+ if ([[info draggingPasteboard] containsURLDataConvertingTextToURL:YES])
return NSDragOperationCopy;
return NSDragOperationNone;
}
@@ -200,7 +200,7 @@ int GetModifierFlags() {
return NSDragOperationNone;
if ([self onlyAllowsNavigation]) {
- if ([[info draggingPasteboard] containsURLData])
+ if ([[info draggingPasteboard] containsURLDataConvertingTextToURL:YES])
return NSDragOperationCopy;
return NSDragOperationNone;
}
@@ -231,7 +231,7 @@ int GetModifierFlags() {
// Check if we only allow navigation and navigate to a url on the pasteboard.
if ([self onlyAllowsNavigation]) {
NSPasteboard* pboard = [info draggingPasteboard];
- if ([pboard containsURLData]) {
+ if ([pboard containsURLDataConvertingTextToURL:YES]) {
GURL url;
ui::PopulateURLAndTitleFromPasteboard(&url, NULL, pboard, YES);
webContents_->OpenURL(OpenURLParams(
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | third_party/mozilla/NSPasteboard+Utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698