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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm

Issue 11428161: bookmarks: Break the dependency in ui/cocoa. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix2 Created 8 years 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_drag_drop.mm ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm b/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
index 371de8fa2216827511de5acded7ceeca0f88cc46..522728e22e18a86922dae90fb71fda442ee62bbe 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
@@ -5,10 +5,10 @@
#import "chrome/browser/ui/cocoa/location_bar/location_icon_decoration.h"
#include "base/sys_string_conversions.h"
-#import "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_finder.h"
+#import "chrome/browser/ui/cocoa/bookmarks/bookmark_drag_drop.h"
#import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
@@ -67,8 +67,7 @@ NSImage* LocationIconDecoration::GetDragImage() {
NSImage* favicon = owner_->GetFavicon().AsNSImage();
NSImage* iconImage = favicon ? favicon : GetImage();
- NSImage* image = bookmark_pasteboard_helper_mac::DragImageForBookmark(
- iconImage, owner_->GetTitle());
+ NSImage* image = chrome::DragImageForBookmark(iconImage, owner_->GetTitle());
NSSize imageSize = [image size];
drag_frame_ = NSMakeRect(0, 0, imageSize.width, imageSize.height);
return image;
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_drag_drop.mm ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698