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

Unified Diff: chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc

Issue 228553002: Preference dis/allowing supervised users creation is now available as owner setting, not only as de… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unnecessary callback removed. Patch applied for failing tests. Created 6 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
Index: chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc b/chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc
index 54d1f65a7d0a94d18b75b9d4a8a2a2018bc75d8b..b34d3f002a85e548c071a346b5296bea8eb85e24 100644
--- a/chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc
+++ b/chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc
@@ -91,6 +91,14 @@ class AccountsOptionsTest : public LoginManagerTest {
&guest_option_enabled));
EXPECT_EQ(is_owner, guest_option_enabled);
+ bool supervised_users_enabled;
+ ASSERT_TRUE(content::ExecuteScriptAndExtractBool(
+ contents,
+ "var e = document.getElementById('allowSupervisedCheck');"
+ "window.domAutomationController.send(!e.disabled);",
+ &supervised_users_enabled));
+ ASSERT_EQ(is_owner, supervised_users_enabled);
+
bool user_pods_enabled;
ASSERT_TRUE(content::ExecuteScriptAndExtractBool(
contents,

Powered by Google App Engine
This is Rietveld 408576698