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); |
} |