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

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

Issue 7809015: Added user email/password switches for test automation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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/manifest_test.json ('k') | chrome/common/chrome_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/signin_screen_handler.cc
===================================================================
--- chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc (revision 98804)
+++ chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc (working copy)
@@ -285,6 +285,20 @@
params.SetBoolean("guestSignin",
UserCrosSettingsProvider::cached_allow_guest());
email_.clear();
+ // Test automation data:
+ const CommandLine* command_line = CommandLine::ForCurrentProcess();
+ if (command_line->HasSwitch(switches::kAuthExtensionPath)) {
+ if (command_line->HasSwitch(switches::kTestAuthEmail)) {
+ params.SetString("test_email",
+ command_line->GetSwitchValueASCII(
+ switches::kTestAuthEmail));
+ }
+ if (command_line->HasSwitch(switches::kTestAuthPassword)) {
+ params.SetString("test_password",
+ command_line->GetSwitchValueASCII(
+ switches::kTestAuthPassword));
+ }
+ }
ShowScreen(kGaiaSigninScreen, &params);
}
« no previous file with comments | « chrome/browser/resources/gaia_auth/manifest_test.json ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698