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

Unified Diff: chrome/browser/first_run/first_run.cc

Issue 19567004: Convert SigninTracker to use OAuth2TokenService notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 3 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/signin/fake_profile_oauth2_token_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/first_run/first_run.cc
diff --git a/chrome/browser/first_run/first_run.cc b/chrome/browser/first_run/first_run.cc
index 6b9e6506e5e9178d7156fde507bdf4727dced00e..4eebbfa8c00f123eaf10446f0d624a436ee1d4f6 100644
--- a/chrome/browser/first_run/first_run.cc
+++ b/chrome/browser/first_run/first_run.cc
@@ -388,10 +388,7 @@ void FirstRunBubbleLauncher::Observe(
Profile::FromBrowserContext(contents->GetBrowserContext());
SigninManagerBase* manager =
SigninManagerFactory::GetForProfile(profile);
- bool signin_in_progress = manager &&
- (!manager->GetAuthenticatedUsername().empty() &&
- SigninTracker::GetSigninState(profile, NULL) !=
- SigninTracker::SIGNIN_COMPLETE);
+ bool signin_in_progress = manager && manager->AuthInProgress();
bool is_promo_bubble_visible =
profile->GetPrefs()->GetBoolean(prefs::kSignInPromoShowNTPBubble);
« no previous file with comments | « no previous file | chrome/browser/signin/fake_profile_oauth2_token_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698