| Index: chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h
|
| diff --git a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h
|
| index 29c0746c8e4068e8e472af754153b5e0c750bebb..4d5c4117f280ca2c802e70819be318c898bb8d4f 100644
|
| --- a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h
|
| +++ b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h
|
| @@ -49,6 +49,9 @@ struct GaiaContext {
|
|
|
| // Whether consumer management enrollment is in progress.
|
| bool is_enrolling_consumer_management;
|
| +
|
| + // True if embedded_signin is enabled.
|
| + bool embedded_signin_enabled;
|
| };
|
|
|
| // A class that handles WebUI hooks in Gaia screen.
|
| @@ -75,6 +78,12 @@ class GaiaScreenHandler : public BaseScreenHandler {
|
| // not loading right now.
|
| void ReloadGaia(bool force_reload);
|
|
|
| + // Reload gaia with embedded signin frame.
|
| + void SwitchToEmbeddedSignin();
|
| +
|
| + // Cancel embedded signin for the next load.
|
| + void CancelEmbeddedSignin();
|
| +
|
| FrameState frame_state() const { return frame_state_; }
|
| net::Error frame_error() const { return frame_error_; }
|
|
|
| @@ -214,6 +223,9 @@ class GaiaScreenHandler : public BaseScreenHandler {
|
| std::string test_pass_;
|
| bool test_expects_complete_login_;
|
|
|
| + // True if user pressed shortcut to enable embedded signin.
|
| + bool embedded_signin_enabled_by_shortcut_;
|
| +
|
| // Non-owning ptr to SigninScreenHandler instance. Should not be used
|
| // in dtor.
|
| // TODO (ygorshenin@): GaiaScreenHandler shouldn't communicate with
|
|
|