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

Unified Diff: chrome/browser/history/android/bookmark_model_sql_handler.cc

Issue 1128173005: Clean up ProfileManager interface. Base URL: https://chromium.googlesource.com/chromium/src@issue479309
Patch Set: sync Created 5 years, 7 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/history/android/bookmark_model_sql_handler.cc
diff --git a/chrome/browser/history/android/bookmark_model_sql_handler.cc b/chrome/browser/history/android/bookmark_model_sql_handler.cc
index 73fb8d88b4c35b4666e55b4d70f562f06e6601f5..3294e3c67ea2cf3f3b01dd548b8e1c36836371c5 100644
--- a/chrome/browser/history/android/bookmark_model_sql_handler.cc
+++ b/chrome/browser/history/android/bookmark_model_sql_handler.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
+#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_utils.h"
@@ -84,9 +85,9 @@ BookmarkModelSQLHandler::Task::~Task() {
}
BookmarkModel* BookmarkModelSQLHandler::Task::GetBookmarkModel() {
- Profile* profile = ProfileManager::GetLastUsedProfile();
+ Profile* profile = g_browser_process->profile_manager()->GetLastUsedProfile();
if (!profile)
- return NULL;
+ return nullptr;
return BookmarkModelFactory::GetForProfile(profile);
}

Powered by Google App Engine
This is Rietveld 408576698