From 3d1b7c7ba93735d06d39e439fa84585029a8d2a0 Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Sun, 31 Jan 2010 00:36:23 +0000 Subject: Fix some bugs related to default-clearing in the HostContentSettingsMap, and clean up various other bits. This also adds some functionality useful to the Exceptions dialogs. BUG=none TEST=none Review URL: http://codereview.chromium.org/557074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37652 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/location_bar_view.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser/views/location_bar_view.cc') diff --git a/chrome/browser/views/location_bar_view.cc b/chrome/browser/views/location_bar_view.cc index 846ef73..39773b7 100644 --- a/chrome/browser/views/location_bar_view.cc +++ b/chrome/browser/views/location_bar_view.cc @@ -1333,7 +1333,7 @@ LocationBarView::ContentBlockedImageView::ContentBlockedImageView( info_bubble_(NULL), bubble_positioner_(bubble_positioner) { if (!icons_[CONTENT_SETTINGS_TYPE_COOKIES]) { - static const int kIconIDs[] = { + static const int kIconIDs[CONTENT_SETTINGS_NUM_TYPES] = { IDR_BLOCKED_COOKIES, IDR_BLOCKED_IMAGES, IDR_BLOCKED_JAVASCRIPT, @@ -1348,7 +1348,7 @@ LocationBarView::ContentBlockedImageView::ContentBlockedImageView( } SetImage(icons_[content_type_]); - static const int kTooltipIDs[] = { + static const int kTooltipIDs[CONTENT_SETTINGS_NUM_TYPES] = { IDS_BLOCKED_COOKIES_TITLE, IDS_BLOCKED_IMAGES_TITLE, IDS_BLOCKED_JAVASCRIPT_TITLE, -- cgit v1.1