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

Unified Diff: chrome/browser/chromeos/login/signin/oauth2_login_manager.cc

Issue 385993004: Clean up Chrome OS WARNING spam (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, profile_io_data feedback Created 6 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/chromeos/login/signin/oauth2_login_manager.cc
diff --git a/chrome/browser/chromeos/login/signin/oauth2_login_manager.cc b/chrome/browser/chromeos/login/signin/oauth2_login_manager.cc
index c6a3fe826dc9f326f926a939d82984df110d9317..ba5e07b9f30976b7946bfddf15c886bdc8dabce1 100644
--- a/chrome/browser/chromeos/login/signin/oauth2_login_manager.cc
+++ b/chrome/browser/chromeos/login/signin/oauth2_login_manager.cc
@@ -99,10 +99,10 @@ void OAuth2LoginManager::RestoreSessionFromSavedTokens() {
ProfileOAuth2TokenService* token_service = GetTokenService();
const std::string& primary_account_id = GetPrimaryAccountId();
if (token_service->RefreshTokenIsAvailable(primary_account_id)) {
- LOG(WARNING) << "OAuth2 refresh token is already loaded.";
+ VLOG(1) << "OAuth2 refresh token is already loaded.";
VerifySessionCookies();
} else {
- LOG(WARNING) << "Loading OAuth2 refresh token from database.";
+ VLOG(1) << "Loading OAuth2 refresh token from database.";
// Flag user with unknown token status in case there are no saved tokens
// and OnRefreshTokenAvailable is not called. Flagging it here would
@@ -127,7 +127,7 @@ bool OAuth2LoginManager::ShouldBlockTabLoading() {
void OAuth2LoginManager::OnRefreshTokenAvailable(
const std::string& account_id) {
- LOG(WARNING) << "OnRefreshTokenAvailable";
+ VLOG(1) << "OnRefreshTokenAvailable";
if (state_ == SESSION_RESTORE_NOT_STARTED)
return;
@@ -138,7 +138,7 @@ void OAuth2LoginManager::OnRefreshTokenAvailable(
// Do not validate tokens for supervised users, as they don't actually have
// oauth2 token.
if (UserManager::Get()->IsLoggedInAsLocallyManagedUser()) {
- LOG(WARNING) << "Logged in as managed user, skip token validation.";
+ VLOG(1) << "Logged in as managed user, skip token validation.";
return;
}
// Only restore session cookies for the primary account in the profile.

Powered by Google App Engine
This is Rietveld 408576698