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

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: splitting calls in two variations, to discass Created 4 years, 7 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
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..1f4948367de3a906dbf02673579be87ae04a0d51 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] containsURLDataInTypeOrText])
return NSDragOperationCopy;
return NSDragOperationNone;
}
@@ -200,7 +200,7 @@ int GetModifierFlags() {
return NSDragOperationNone;
if ([self onlyAllowsNavigation]) {
- if ([[info draggingPasteboard] containsURLData])
+ if ([[info draggingPasteboard] containsURLDataInTypeOrText])
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 containsURLDataInTypeOrText]) {
GURL url;
ui::PopulateURLAndTitleFromPasteboard(&url, NULL, pboard, YES);
webContents_->OpenURL(OpenURLParams(

Powered by Google App Engine
This is Rietveld 408576698