diff options
author | georgey@chromium.org <georgey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-03 04:21:06 +0000 |
---|---|---|
committer | georgey@chromium.org <georgey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-03 04:21:06 +0000 |
commit | 2e6a7d4b64b328c8d09a6fefb381316d01a89e00 (patch) | |
tree | 090971ed1da9a8a7bda2acb676ec6b41e2bd0f16 /views | |
parent | b59f5c84afbfee37e9cb2957aedc5240141ac835 (diff) | |
download | chromium_src-2e6a7d4b64b328c8d09a6fefb381316d01a89e00.zip chromium_src-2e6a7d4b64b328c8d09a6fefb381316d01a89e00.tar.gz chromium_src-2e6a7d4b64b328c8d09a6fefb381316d01a89e00.tar.bz2 |
Adds 'default' check to profiles, allows opening/closing profile by clicking on the label
BUG=38284,38263
TEST=in the bugs
Review URL: http://codereview.chromium.org/1607005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43567 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/button/radio_button.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/controls/button/radio_button.cc b/views/controls/button/radio_button.cc index 20c55fa..45e3da7 100644 --- a/views/controls/button/radio_button.cc +++ b/views/controls/button/radio_button.cc @@ -29,7 +29,8 @@ RadioButton::~RadioButton() { void RadioButton::SetChecked(bool checked) { if (checked == RadioButton::checked()) return; - if (!native_wrapper_->UsesNativeRadioButtonGroup() && checked) { + if (native_wrapper_ && + !native_wrapper_->UsesNativeRadioButtonGroup() && checked) { // We can't just get the root view here because sometimes the radio // button isn't attached to a root view (e.g., if it's part of a tab page // that is currently not active). |