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

Unified Diff: chrome/test/functional/policy_prefs_ui.py

Issue 10542023: Disable modifying extensions when in managed mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fixed Evan's nits Created 8 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/ui/webui/extensions/extension_settings_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/policy_prefs_ui.py
===================================================================
--- chrome/test/functional/policy_prefs_ui.py (revision 142678)
+++ chrome/test/functional/policy_prefs_ui.py (working copy)
@@ -50,11 +50,10 @@
self.LoginWithTestAccount()
def IsAnyBannerVisible(self):
- """Returns true if any managed prefs banner is visible in the current page.
- """
+ """Returns true if any banner (e.g. for managed prefs) is visible."""
ret = self.ExecuteJavascript("""
var visible = false;
- var banners = document.querySelectorAll('.managed-prefs-banner');
+ var banners = document.querySelectorAll('.page-banner');
for (var i=0; i<banners.length; i++) {
if (banners[i].parentElement.id == 'templates')
continue;
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_settings_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698