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

Unified Diff: chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h

Issue 645003002: Added keyboard shortcut on GAIA "Add User" screen to dogfood GAIA /EmbeddedSignin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review 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/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
« no previous file with comments | « chrome/browser/chromeos/login/ui/webui_login_view.cc ('k') | chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698