summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/cocoa/page_info_window_mac.mm3
-rw-r--r--chrome/browser/gtk/page_info_window_gtk.cc3
2 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/page_info_window_mac.mm b/chrome/browser/cocoa/page_info_window_mac.mm
index a69fa49..306d1ed 100644
--- a/chrome/browser/cocoa/page_info_window_mac.mm
+++ b/chrome/browser/cocoa/page_info_window_mac.mm
@@ -221,7 +221,8 @@ void PageInfoWindowMac::LayoutSections() {
scoped_nsobject<NSImageView> image_view(
[[NSImageView alloc] initWithFrame:image_view_rect]);
[image_view setImageFrameStyle:NSImageFrameNone];
- [image_view setImage:(info.state) ? good_image_.get() : bad_image_.get()];
+ [image_view setImage:(info.state != PageInfoModel::SECTION_STATE_ERROR) ?
+ good_image_.get() : bad_image_.get()];
// Add the box to the list of new subviews.
[box addSubview:image_view.get()];
diff --git a/chrome/browser/gtk/page_info_window_gtk.cc b/chrome/browser/gtk/page_info_window_gtk.cc
index 87671ae..ef89e77 100644
--- a/chrome/browser/gtk/page_info_window_gtk.cc
+++ b/chrome/browser/gtk/page_info_window_gtk.cc
@@ -149,7 +149,8 @@ GtkWidget* PageInfoWindowGtk::CreateSection(
GtkWidget* section_box = gtk_hbox_new(FALSE, 0);
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- GtkWidget* image = gtk_image_new_from_pixbuf(section.state ?
+ GtkWidget* image = gtk_image_new_from_pixbuf(
+ section.state != PageInfoModel::SECTION_STATE_ERROR ?
rb.GetPixbufNamed(IDR_PAGEINFO_GOOD) :
rb.GetPixbufNamed(IDR_PAGEINFO_BAD));
gtk_box_pack_start(GTK_BOX(section_box), image, FALSE, FALSE,