summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-20 13:29:12 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-20 13:29:12 +0000
commit4b5add9adbb6a7dfe969e5a81bb33b71e16a0e4d (patch)
treed54862d16da6df82cf2f77ae8544d2e200d347a8
parent592cd6e40002699640e63d53d5b6604ce595deca (diff)
downloadchromium_src-4b5add9adbb6a7dfe969e5a81bb33b71e16a0e4d.zip
chromium_src-4b5add9adbb6a7dfe969e5a81bb33b71e16a0e4d.tar.gz
chromium_src-4b5add9adbb6a7dfe969e5a81bb33b71e16a0e4d.tar.bz2
Make radios in the content bubble a radio group.
BUG=41224 TEST=manual Review URL: http://codereview.chromium.org/1568043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45031 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/views/content_blocked_bubble_contents.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/views/content_blocked_bubble_contents.cc b/chrome/browser/views/content_blocked_bubble_contents.cc
index 79c4bbe..71d4d7e 100644
--- a/chrome/browser/views/content_blocked_bubble_contents.cc
+++ b/chrome/browser/views/content_blocked_bubble_contents.cc
@@ -220,8 +220,7 @@ void ContentSettingBubbleContents::InitControlLayout() {
for (ContentSettingBubbleModel::RadioItems::const_iterator i =
radio_group.radio_items.begin();
i != radio_group.radio_items.end(); ++i) {
- views::RadioButton* radio = new views::RadioButton(
- UTF8ToWide(*i), i - radio_group.radio_items.begin());
+ views::RadioButton* radio = new views::RadioButton(UTF8ToWide(*i), 0);
radio->set_listener(this);
radio->SetEnabled(radio_group.is_mutable);
radio_group_.push_back(radio);