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

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

Issue 384973004: Introduce disable-gaia-services for fake telemetry login. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nkostylev 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
« no previous file with comments | « chrome/browser/chromeos/login/session/user_session_manager.cc ('k') | chromeos/chromeos_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4e189b8fb3d9701110d1c327f25948639728b93b 100644
--- a/chrome/browser/chromeos/login/signin/oauth2_login_manager.cc
+++ b/chrome/browser/chromeos/login/signin/oauth2_login_manager.cc
@@ -40,10 +40,11 @@ OAuth2LoginManager::OAuth2LoginManager(Profile* user_profile)
restore_strategy_(RESTORE_FROM_COOKIE_JAR),
state_(SESSION_RESTORE_NOT_STARTED) {
GetTokenService()->AddObserver(this);
+
+ // For telemetry, we mark session restore completed to avoid warnings from
+ // MergeSessionThrottle.
if (CommandLine::ForCurrentProcess()->
- HasSwitch(chromeos::switches::kOobeSkipPostLogin)) {
- // For telemetry we should mark session restore completed to avoid
- // warnings from MergeSessionThrottle.
+ HasSwitch(chromeos::switches::kDisableGaiaServices)) {
SetSessionRestoreState(SESSION_RESTORE_DONE);
}
}
« no previous file with comments | « chrome/browser/chromeos/login/session/user_session_manager.cc ('k') | chromeos/chromeos_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698