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

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

Issue 2946023002: ChromeOS: Add support for loading GAIA API v2 (Closed)
Patch Set: Update after review Created 3 years, 6 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
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/authenticator.js ('k') | chromeos/chromeos_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
index eb45c93da9a701a1939377f0fce2b23336f1c0aa..e530027a98342f303884801e19bd05f6f774b049 100644
--- a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
@@ -348,6 +348,10 @@ void GaiaScreenHandler::LoadGaiaWithVersion(
params.SetString("gaiaUrl", eafe_url);
params.SetString("gaiaPath", eafe_path);
}
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kCrosGaiaApiV1)) {
+ params.SetString("chromeOSApiVersion", "1");
+ }
frame_state_ = FRAME_STATE_LOADING;
CallJS("loadAuthExtension", params);
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/authenticator.js ('k') | chromeos/chromeos_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698