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

Unified Diff: chrome/browser/bookmarks/bookmark_editor.cc

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
Index: chrome/browser/bookmarks/bookmark_editor.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_editor.cc (revision 149452)
+++ chrome/browser/bookmarks/bookmark_editor.cc (working copy)
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "chrome/browser/bookmarks/bookmark_editor.h"
+#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/bookmarks/bookmark_utils.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
@@ -88,7 +89,7 @@
void BookmarkEditor::ShowBookmarkAllTabsDialog(Browser* browser) {
Profile* profile = browser->profile();
- BookmarkModel* model = profile->GetBookmarkModel();
+ BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile);
DCHECK(model && model->IsLoaded());
BookmarkEditor::EditDetails details =

Powered by Google App Engine
This is Rietveld 408576698