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

Unified Diff: chrome/browser/ui/views/content_setting_bubble_contents.cc

Issue 10537071: Disable the radio button of a content settings bubble if the content setting for the current site i… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/content_setting_bubble_contents.cc
diff --git a/chrome/browser/ui/views/content_setting_bubble_contents.cc b/chrome/browser/ui/views/content_setting_bubble_contents.cc
index 75f07550e151f0ee3f896f40132ddd440ed046f9..1e2e9d5dbc6f445f20926622ff01ef8903f8ba16 100644
--- a/chrome/browser/ui/views/content_setting_bubble_contents.cc
+++ b/chrome/browser/ui/views/content_setting_bubble_contents.cc
@@ -208,6 +208,8 @@ void ContentSettingBubbleContents::Init() {
radio_group.radio_items.begin();
i != radio_group.radio_items.end(); ++i) {
views::RadioButton* radio = new views::RadioButton(UTF8ToUTF16(*i), 0);
+ if (!bubble_content.radio_group_enabled)
tfarina 2012/06/08 21:21:48 this seems logically correct. would be worth to do
markusheintz_ 2012/06/11 13:25:04 Thanks for pointing this out. I guess I can even
+ radio->SetEnabled(false);
radio->set_listener(this);
radio_group_.push_back(radio);
layout->StartRow(0, single_column_set_id);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698