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

Unified Diff: chrome/browser/chromeos/login/webview_login_browsertest.cc

Issue 1152783004: Browser test for guest signin button. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/webview_login_browsertest.cc
diff --git a/chrome/browser/chromeos/login/webview_login_browsertest.cc b/chrome/browser/chromeos/login/webview_login_browsertest.cc
index b7d3caa4a681606f2accfe80050ba77feddba623..4e1fa1f2b5e887240d20430bacb1b616f844fa16 100644
--- a/chrome/browser/chromeos/login/webview_login_browsertest.cc
+++ b/chrome/browser/chromeos/login/webview_login_browsertest.cc
@@ -79,4 +79,11 @@ IN_PROC_BROWSER_TEST_F(WebviewLoginTest, BackButton) {
session_start_waiter.Wait();
}
+IN_PROC_BROWSER_TEST_F(WebviewLoginTest, AllowGuest) {
+ WaitForGaiaPageLoad();
+ JsExpect("!$('guest-user-header-bar-item').hidden");
+ chromeos::CrosSettings::Get()->SetBoolean(kAccountsPrefAllowGuest, false);
+ JsExpect("$('guest-user-header-bar-item').hidden");
+}
+
} // namespace chromeos
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698