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

Unified Diff: chrome/browser/ui/gtk/options/cookie_filter_page_gtk.cc

Issue 6534021: Implemented a policy to match the ClearSiteDataOnExit pref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improved policy description. Created 9 years, 10 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/gtk/options/cookie_filter_page_gtk.cc
diff --git a/chrome/browser/ui/gtk/options/cookie_filter_page_gtk.cc b/chrome/browser/ui/gtk/options/cookie_filter_page_gtk.cc
index 39c0605dc2f5295404f7d9f0b7b1d39c5544fb7f..1fa51e764045519a18862e35a08dec317ef2e262 100644
--- a/chrome/browser/ui/gtk/options/cookie_filter_page_gtk.cc
+++ b/chrome/browser/ui/gtk/options/cookie_filter_page_gtk.cc
@@ -148,7 +148,9 @@ void CookieFilterPageGtk::UpdateUiState() {
GTK_TOGGLE_BUTTON(block_3rdparty_check_),
block_third_party_cookies_.GetValue());
- // Disable the UI if the default content setting is managed.
+ // Disable the UI if any of the settings is managed.
+ gtk_widget_set_sensitive(clear_on_close_check_,
+ !clear_site_data_on_exit_.IsManaged());
gtk_widget_set_sensitive(block_3rdparty_check_,
!block_third_party_cookies_.IsManaged());
bool sensitive = true;

Powered by Google App Engine
This is Rietveld 408576698