diff options
author | mnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 09:13:58 +0000 |
---|---|---|
committer | mnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 09:13:58 +0000 |
commit | 7bef619f7f1cde7d07e5642afd5a780c15e3e6d9 (patch) | |
tree | 8b68565aacb1fea1ea1ceea7e1525dab503d8f1a /chrome/browser/gtk/options/content_page_gtk.cc | |
parent | ec5c5f2cc84954fc2e745887bea3f006c5f8e7d7 (diff) | |
download | chromium_src-7bef619f7f1cde7d07e5642afd5a780c15e3e6d9.zip chromium_src-7bef619f7f1cde7d07e5642afd5a780c15e3e6d9.tar.gz chromium_src-7bef619f7f1cde7d07e5642afd5a780c15e3e6d9.tar.bz2 |
Show the managed prefs warning banner for some advanced options.
BUG=48470
TEST=Configure policy, check advanced page of preferences dialog.
Review URL: http://codereview.chromium.org/2908007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52467 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/options/content_page_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/options/content_page_gtk.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/chrome/browser/gtk/options/content_page_gtk.cc b/chrome/browser/gtk/options/content_page_gtk.cc index 4cc89ed..ef3b1a2 100644 --- a/chrome/browser/gtk/options/content_page_gtk.cc +++ b/chrome/browser/gtk/options/content_page_gtk.cc @@ -42,11 +42,6 @@ namespace { // Background color for the status label when it's showing an error. static const GdkColor kSyncLabelErrorBgColor = GDK_COLOR_RGB(0xff, 0x9a, 0x9a); -// Set of preferences which might be unavailable for editing when managed. -const wchar_t* kContentManagablePrefs[] = { - prefs::kSyncManaged -}; - // Helper for WrapLabelAtAllocationHack. void OnLabelAllocate(GtkWidget* label, GtkAllocation* allocation) { gtk_widget_set_size_request(label, allocation->width, -1); @@ -86,8 +81,7 @@ ContentPageGtk::ContentPageGtk(Profile* profile) privacy_dashboard_link_(NULL), initializing_(true), sync_service_(NULL), - managed_prefs_banner_(profile->GetPrefs(), kContentManagablePrefs, - arraysize(kContentManagablePrefs)) { + managed_prefs_banner_(profile->GetPrefs(), OPTIONS_PAGE_CONTENT) { if (profile->GetProfileSyncService()) { sync_service_ = profile->GetProfileSyncService(); sync_service_->AddObserver(this); |