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

Unified Diff: chrome/browser/views/content_blocked_bubble_contents.cc

Issue 586008: Merge 38388 - Set the initial state of the content blocked bubble radio butto... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/content_blocked_bubble_contents.cc
===================================================================
--- chrome/browser/views/content_blocked_bubble_contents.cc (revision 38388)
+++ chrome/browser/views/content_blocked_bubble_contents.cc (working copy)
@@ -179,9 +179,13 @@
layout->AddView(block_radio_);
layout->AddPaddingRow(0, kRelatedControlVerticalSpacing);
- // Now that this has been added to the view hierarchy, it's safe to call
- // SetChecked() on it.
- block_radio_->SetChecked(true);
+ // Now that the buttons have been added to the view hierarchy, it's safe to
+ // call SetChecked() on them.
+ if (profile_->GetHostContentSettingsMap()->GetContentSetting(host_,
+ content_type_) == CONTENT_SETTING_ALLOW)
+ allow_radio_->SetChecked(true);
+ else
+ block_radio_->SetChecked(true);
views::Separator* separator = new views::Separator;
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