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

Unified Diff: chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript.mm

Issue 10834161: 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, 4 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 | « no previous file | chrome/browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript.mm
===================================================================
--- chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript.mm (revision 149630)
+++ chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript.mm (working copy)
@@ -8,6 +8,7 @@
#import "base/memory/scoped_nsobject.h"
#import "chrome/browser/app_controller_mac.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
+#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
@@ -76,7 +77,7 @@
return nil;
}
- BookmarkModel* model = lastProfile->GetBookmarkModel();
+ BookmarkModel* model = BookmarkModelFactory::GetForProfile(lastProfile);
if (!model->IsLoaded()) {
AppleScript::SetError(AppleScript::errBookmarkModelLoad);
return nil;
@@ -99,7 +100,7 @@
return nil;
}
- BookmarkModel* model = lastProfile->GetBookmarkModel();
+ BookmarkModel* model = BookmarkModelFactory::GetForProfile(lastProfile);
if (!model->IsLoaded()) {
AppleScript::SetError(AppleScript::errBookmarkModelLoad);
return NULL;
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698