summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/page_info_bubble_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/page_info_bubble_view.cc')
-rw-r--r--chrome/browser/ui/views/page_info_bubble_view.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/ui/views/page_info_bubble_view.cc b/chrome/browser/ui/views/page_info_bubble_view.cc
index 5456668..c4e0bc7 100644
--- a/chrome/browser/ui/views/page_info_bubble_view.cc
+++ b/chrome/browser/ui/views/page_info_bubble_view.cc
@@ -55,7 +55,7 @@ class Section : public views::View,
public:
Section(PageInfoBubbleView* owner,
const PageInfoModel::SectionInfo& section_info,
- const SkBitmap* status_icon,
+ const gfx::ImageSkia* status_icon,
bool show_cert);
virtual ~Section();
@@ -191,7 +191,8 @@ void PageInfoBubbleView::LayoutSections() {
if (count == 1 && info.type == PageInfoModel::SECTION_INFO_INTERNAL_PAGE)
only_internal_section = true;
layout->StartRow(0, 0);
- const SkBitmap* icon = model_.GetIconImage(info.icon_id)->ToSkBitmap();
+ const gfx::ImageSkia* icon = model_.GetIconImage(
+ info.icon_id)->ToImageSkia();
Section* section = new Section(this, info, icon, cert_id_ > 0);
if (info.type == PageInfoModel::SECTION_INFO_FIRST_VISIT) {
// This section is animated into view, so we need to set the height of it
@@ -239,7 +240,8 @@ gfx::Size PageInfoBubbleView::GetPreferredSize() {
int count = model_.GetSectionCount();
for (int i = 0; i < count; ++i) {
PageInfoModel::SectionInfo info = model_.GetSectionInfo(i);
- const SkBitmap* icon = model_.GetIconImage(info.icon_id)->ToSkBitmap();
+ const gfx::ImageSkia* icon = model_.GetIconImage(
+ info.icon_id)->ToImageSkia();
Section section(this, info, icon, cert_id_ > 0);
size.Enlarge(0, section.GetHeightForWidth(size.width()));
}
@@ -313,7 +315,7 @@ void PageInfoBubbleView::AnimationProgressed(const ui::Animation* animation) {
Section::Section(PageInfoBubbleView* owner,
const PageInfoModel::SectionInfo& section_info,
- const SkBitmap* state_icon,
+ const gfx::ImageSkia* state_icon,
bool show_cert)
: owner_(owner),
info_(section_info),