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

Unified Diff: chrome/browser/favicon/favicon_tab_helper.cc

Issue 10837215: exhibit 1: explicit null checks Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/favicon/favicon_tab_helper.cc
diff --git a/chrome/browser/favicon/favicon_tab_helper.cc b/chrome/browser/favicon/favicon_tab_helper.cc
index 649527224d2320742a7ed224d7447cb3d0478778..d7b5c8714a298090af34bdd92e95e199129e981e 100644
--- a/chrome/browser/favicon/favicon_tab_helper.cc
+++ b/chrome/browser/favicon/favicon_tab_helper.cc
@@ -116,7 +116,7 @@ void FaviconTabHelper::SaveFavicon() {
std::vector<unsigned char> image_data;
// TODO: Save all representations.
gfx::PNGCodec::EncodeBGRASkBitmap(
- favicon.image.AsBitmap(), false, &image_data);
+ *favicon.image.ToSkBitmap(), false, &image_data);
service->SetFavicon(
entry->GetURL(), favicon.url, image_data, history::FAVICON);
}
« no previous file with comments | « chrome/browser/extensions/api/extension_action/extension_actions_api.cc ('k') | chrome/browser/instant/instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698