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

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

Issue 650180: Initial Geolocation location bar icons. (Closed)
Patch Set: Addresses Peter and Brett's comments. Created 10 years, 9 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
Index: chrome/browser/views/content_blocked_bubble_contents.cc
diff --git a/chrome/browser/views/content_blocked_bubble_contents.cc b/chrome/browser/views/content_blocked_bubble_contents.cc
index e9be34fec5e6e3f1daabc2728bbc46b828bd13f2..21d13457278e66b8e6c99cd39414f62672d868ee 100644
--- a/chrome/browser/views/content_blocked_bubble_contents.cc
+++ b/chrome/browser/views/content_blocked_bubble_contents.cc
@@ -213,7 +213,13 @@ void ContentSettingBubbleContents::InitControlLayout() {
const ContentSettingBubbleModel::RadioGroups& radio_groups =
content_setting_bubble_model_->bubble_content().radio_groups;
for (ContentSettingBubbleModel::RadioGroups::const_iterator i =
- radio_groups.begin(); i != radio_groups.end(); ++i) {
+ radio_groups.begin(); i != radio_groups.end(); ++i) {
+ if (!i->title.empty()) {
+ views::Label* title_label = new views::Label(UTF8ToWide(i->title));
+ layout->StartRow(0, single_column_set_id);
+ layout->AddView(title_label);
+ layout->AddPaddingRow(0, kRelatedControlVerticalSpacing);
+ }
const ContentSettingBubbleModel::RadioItems& radio_items = i->radio_items;
RadioGroup radio_group;
for (ContentSettingBubbleModel::RadioItems::const_iterator j =
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/views/options/content_settings_window_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698