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

Unified Diff: chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.mm

Issue 10821097: Removing instances of profile_->GetBookmarkModel() as part of converting BookmarkModel to a PKS. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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/bookmarks/bookmark_node_data_unittest.cc ('k') | chrome/browser/bookmarks/bookmark_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.mm
===================================================================
--- chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.mm (revision 149452)
+++ chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.mm (working copy)
@@ -11,6 +11,7 @@
#include "base/memory/scoped_nsobject.h"
#include "base/sys_string_conversions.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
+#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/profiles/profile.h"
#import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h"
#include "grit/ui_resources.h"
@@ -422,7 +423,8 @@
pressure:1.0];
// TODO(avi): Do better than this offset.
- NSImage* drag_image = MakeDragImage(profile->GetBookmarkModel(), nodes);
+ NSImage* drag_image =
+ MakeDragImage(BookmarkModelFactory::GetForProfile(profile), nodes);
NSSize image_size = [drag_image size];
position.x -= std::floor(image_size.width / 2);
position.y -= std::floor(image_size.height / 5);
« no previous file with comments | « chrome/browser/bookmarks/bookmark_node_data_unittest.cc ('k') | chrome/browser/bookmarks/bookmark_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698