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

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: move first run session init and browser launch out of EUC 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 04552294dfff3f2741f69a4571653940c5bd463f..4056770f46c9ce5a8fbf33e1c23a38a04450c3ee 100644
--- a/chrome/browser/chromeos/login/user_flow.h
+++ b/chrome/browser/chromeos/login/user_flow.h
@@ -21,8 +21,13 @@ 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;
+
Denis Kuznetsov (DE-MUC) 2014/10/16 12:21:42 Do we need empty line here?
Nikita (slow) 2014/10/17 13:17:41 Done.
virtual bool ShouldShowSettings() = 0;
virtual bool ShouldLaunchBrowser() = 0;
virtual bool ShouldSkipPostLoginScreens() = 0;
@@ -50,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;
@@ -68,7 +74,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