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

Unified Diff: chrome/browser/ui/sync/profile_signin_confirmation_helper.cc

Issue 2216713002: Use BookmarkModelFactory::GetForBrowserContext everywhere (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmarks
Patch Set: Replace in .mm files Created 4 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
Index: chrome/browser/ui/sync/profile_signin_confirmation_helper.cc
diff --git a/chrome/browser/ui/sync/profile_signin_confirmation_helper.cc b/chrome/browser/ui/sync/profile_signin_confirmation_helper.cc
index 8d3818baffb3fad93816e71bf366263dc315b755..bd9625241f6984df0f4c3d1b5433c590e9b1120b 100644
--- a/chrome/browser/ui/sync/profile_signin_confirmation_helper.cc
+++ b/chrome/browser/ui/sync/profile_signin_confirmation_helper.cc
@@ -33,7 +33,8 @@ namespace {
const int kHistoryEntriesBeforeNewProfilePrompt = 10;
bool HasBookmarks(Profile* profile) {
- BookmarkModel* bookmarks = BookmarkModelFactory::GetForProfile(profile);
+ BookmarkModel* bookmarks =
+ BookmarkModelFactory::GetForBrowserContext(profile);
bool has_bookmarks = bookmarks && bookmarks->HasBookmarks();
if (has_bookmarks)
DVLOG(1) << "SigninConfirmationHelper: profile contains bookmarks";

Powered by Google App Engine
This is Rietveld 408576698