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

Unified Diff: chrome/browser/ui/panels/panel_view.cc

Issue 10827259: Change panels to use gfx::Image instead of SkBitmap for favicon. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: applied change to panel_titlebar_gtk.cc after syncing Created 8 years, 4 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/ui/panels/panel_view.cc
diff --git a/chrome/browser/ui/panels/panel_view.cc b/chrome/browser/ui/panels/panel_view.cc
index 27fc80d5c28dab8235edd66fb46db3000adf6f16..b18d0fca355552a69198950eac6cd94bc3c74c5a 100644
--- a/chrome/browser/ui/panels/panel_view.cc
+++ b/chrome/browser/ui/panels/panel_view.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/ui/panels/panel_manager.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_widget_host_view.h"
+#include "ui/gfx/image/image.h"
#include "ui/gfx/path.h"
#include "ui/gfx/screen.h"
#include "ui/views/controls/button/image_button.h"
@@ -504,7 +505,8 @@ string16 PanelView::GetWindowTitle() const {
}
gfx::ImageSkia PanelView::GetWindowIcon() {
- return panel_->GetCurrentPageIcon();
+ gfx::Image icon = panel_->GetCurrentPageIcon();
+ return icon.IsEmpty() ? gfx::ImageSkia() : *icon.ToImageSkia();
}
void PanelView::DeleteDelegate() {
« no previous file with comments | « chrome/browser/ui/panels/panel_titlebar_gtk.cc ('k') | chrome/browser/ui/panels/panel_window_controller_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698