| Index: chrome/browser/ui/cocoa/url_drop_target.mm
|
| diff --git a/chrome/browser/ui/cocoa/url_drop_target.mm b/chrome/browser/ui/cocoa/url_drop_target.mm
|
| index 55d5e2bd10b3f81b11b81624f12108e453cb8061..00b11c1c9d60a84df24213e6891ea63880c0eacd 100644
|
| --- a/chrome/browser/ui/cocoa/url_drop_target.mm
|
| +++ b/chrome/browser/ui/cocoa/url_drop_target.mm
|
| @@ -6,17 +6,9 @@
|
|
|
| #include "chrome/browser/ui/cocoa/drag_util.h"
|
| #import "third_party/mozilla/NSPasteboard+Utils.h"
|
| +#include "ui/base/clipboard/clipboard_util_mac.h"
|
| #include "url/gurl.h"
|
|
|
| -namespace {
|
| -
|
| -// Mac WebKit uses this type, declared in
|
| -// WebKit/mac/History/WebURLsWithTitles.h.
|
| -NSString* const kCrWebURLsWithTitlesPboardType =
|
| - @"WebURLsWithTitlesPboardType";
|
| -
|
| -} // namespace
|
| -
|
| @interface URLDropTargetHandler(Private)
|
|
|
| // Gets the appropriate drag operation given the |NSDraggingInfo|.
|
| @@ -30,11 +22,10 @@ NSString* const kCrWebURLsWithTitlesPboardType =
|
| @implementation URLDropTargetHandler
|
|
|
| + (NSArray*)handledDragTypes {
|
| - return [NSArray arrayWithObjects:kCrWebURLsWithTitlesPboardType,
|
| - NSURLPboardType,
|
| - NSStringPboardType,
|
| - NSFilenamesPboardType,
|
| - nil];
|
| + return @[
|
| + ui::ClipboardUtil::UTIForWebURLsAndTitles(), NSURLPboardType,
|
| + NSStringPboardType, NSFilenamesPboardType
|
| + ];
|
| }
|
|
|
| - (id)initWithView:(NSView<URLDropTarget>*)view {
|
|
|