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

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: 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..87dd0acc21c932849e0e4d9d03b7fb4098ca1997 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::kDisableSessionRestore)) {
SetSessionRestoreState(SESSION_RESTORE_DONE);
}
}

Powered by Google App Engine
This is Rietveld 408576698