Index: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
index a72928503a1fde8b0108c8703c9b5da175e02c1c..9b58dbcb25ba1cc0b83a0d9bf26a5bd52492f726 100644 |
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
@@ -104,9 +104,8 @@ LocationBarViewMac::LocationBarViewMac(AutocompleteTextField* field, |
new ManagePasswordsDecoration(command_updater, this)), |
browser_(browser), |
weak_ptr_factory_(this) { |
- for (size_t i = 0; i < CONTENT_SETTINGS_NUM_TYPES; ++i) { |
- DCHECK_EQ(i, content_setting_decorations_.size()); |
- ContentSettingsType type = static_cast<ContentSettingsType>(i); |
+ for (ContentSettingsType type : |
+ ContentSettingBubbleModel::GetSupportedBubbleTypes()) { |
content_setting_decorations_.push_back( |
new ContentSettingDecoration(type, this, profile)); |
} |