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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_folder_target.mm

Issue 1855783002: mac: More pasteboard fixes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp23_dnd
Patch Set: Created 4 years, 9 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/bookmarks/bookmark_button.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_folder_target.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_folder_target.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_folder_target.mm
index ba59cb2c67f95e4074605b4eb42b95b7e273d0e5..f1c67b185b18d0f0de67e5646164eaf0d8c0af80 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_folder_target.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_folder_target.mm
@@ -12,6 +12,7 @@
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_node_data.h"
#include "components/bookmarks/browser/bookmark_pasteboard_helper_mac.h"
+#include "ui/base/clipboard/clipboard_util_mac.h"
#import "ui/base/cocoa/cocoa_base_utils.h"
using bookmarks::BookmarkNode;
@@ -114,12 +115,15 @@ NSString* kBookmarkButtonDragType = @"com.google.chrome.BookmarkButtonDrag";
forDragOfButton:(BookmarkButton*)button {
if (const BookmarkNode* node = [button bookmarkNode]) {
// Put the bookmark information into the pasteboard, and then write our own
- // data for |kBookmarkButtonDragType|.
+ // data for
+ // |ui::ClipboardUtil::UTIForPasteboardType(kBookmarkButtonDragType)|.
[self copyBookmarkNode:node toDragPasteboard:pboard];
- [pboard addTypes:[NSArray arrayWithObject:kBookmarkButtonDragType]
+ [pboard addTypes:@[ ui::ClipboardUtil::UTIForPasteboardType(
+ kBookmarkButtonDragType) ]
owner:nil];
[pboard setData:[NSData dataWithBytes:&button length:sizeof(button)]
- forType:kBookmarkButtonDragType];
+ forType:ui::ClipboardUtil::UTIForPasteboardType(
+ kBookmarkButtonDragType)];
} else {
NOTREACHED();
}
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698