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

Unified Diff: chrome/browser/gtk/content_blocked_bubble_gtk.cc

Issue 587003: Set the initial state of the content blocked bubble radio buttons correctly.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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
« no previous file with comments | « no previous file | chrome/browser/views/content_blocked_bubble_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/content_blocked_bubble_gtk.cc
===================================================================
--- chrome/browser/gtk/content_blocked_bubble_gtk.cc (revision 38381)
+++ chrome/browser/gtk/content_blocked_bubble_gtk.cc (working copy)
@@ -132,7 +132,10 @@
// We must set the default value before we attach the signal handlers or
// pain occurs.
- gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(block_radio_), TRUE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(
+ (profile_->GetHostContentSettingsMap()->GetContentSetting(host_,
+ content_type_) == CONTENT_SETTING_ALLOW) ?
+ allow_radio_ : block_radio_), TRUE);
g_signal_connect(G_OBJECT(allow_radio_), "toggled",
G_CALLBACK(OnAllowBlockToggled), this);
« no previous file with comments | « no previous file | chrome/browser/views/content_blocked_bubble_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698