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

Unified Diff: chrome/browser/chromeos/login/user_flow.h

Issue 656283002: [session_manager] Move user session initialization code out of ExistingUserController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update FakeLoginUtils to launch browser Created 6 years, 2 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/user_flow.h
diff --git a/chrome/browser/chromeos/login/user_flow.h b/chrome/browser/chromeos/login/user_flow.h
index ef7955f14c9a08f0f2dae04f25f70a86d74e2859..d5479365a883845f00185d68e24f46b8d150d82e 100644
--- a/chrome/browser/chromeos/login/user_flow.h
+++ b/chrome/browser/chromeos/login/user_flow.h
@@ -21,6 +21,10 @@ class UserFlow {
public:
UserFlow();
virtual ~UserFlow() = 0;
+
+ // Provides ability to alter command line before session has started.
+ virtual void AppendAdditionalCommandLineSwitches() = 0;
+
// Indicates if screen locking should be enabled or disabled for a flow.
virtual bool CanLockScreen() = 0;
virtual bool ShouldShowSettings() = 0;
@@ -51,6 +55,7 @@ class DefaultUserFlow : public UserFlow {
public:
virtual ~DefaultUserFlow();
+ virtual void AppendAdditionalCommandLineSwitches() override;
virtual bool CanLockScreen() override;
virtual bool ShouldShowSettings() override;
virtual bool ShouldLaunchBrowser() override;
@@ -70,7 +75,10 @@ class ExtendedUserFlow : public UserFlow {
explicit ExtendedUserFlow(const std::string& user_id);
virtual ~ExtendedUserFlow();
+ virtual void AppendAdditionalCommandLineSwitches() override;
virtual bool ShouldShowSettings() override;
+ virtual void HandleOAuthTokenStatusChange(
+ user_manager::User::OAuthTokenStatus status) override;
protected:
// Subclasses can call this method to unregister flow in the next event.

Powered by Google App Engine
This is Rietveld 408576698