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

Unified Diff: chrome/test/data/webui/settings/privacy_page_test.js

Issue 2855123004: MD Settings: hide browsing history-related rows for supervised users (Closed)
Patch Set: comment Created 3 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 | « chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/privacy_page_test.js
diff --git a/chrome/test/data/webui/settings/privacy_page_test.js b/chrome/test/data/webui/settings/privacy_page_test.js
index 0488099c61caf12b4cc1e8dd97dfd7fcc128c55a..4bf8f7d759bbde550dcd0b42a61f808b6da1b605 100644
--- a/chrome/test/data/webui/settings/privacy_page_test.js
+++ b/chrome/test/data/webui/settings/privacy_page_test.js
@@ -229,6 +229,25 @@ cr.define('settings_privacy_page', function() {
'update-counter-text', checkbox.pref.key, 'result');
assertEquals('result', checkbox.subLabel);
});
+
+ test('history rows are hidden for supervised users', function() {
+ assertFalse(loadTimeData.getBoolean('isSupervised'));
+ assertFalse(element.$.browsingCheckbox.hidden);
+ assertFalse(element.$.downloadCheckbox.hidden);
+
+ element.remove();
+ testBrowserProxy.reset();
+ loadTimeData.overrideValues({isSupervised: true});
+
+ element = document.createElement('settings-clear-browsing-data-dialog');
+ document.body.appendChild(element);
+ Polymer.dom.flush();
+
+ return testBrowserProxy.whenCalled('initialize').then(function() {
+ assertTrue(element.$.browsingCheckbox.hidden);
+ assertTrue(element.$.downloadCheckbox.hidden);
+ });
+ });
});
}
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698