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

Unified Diff: chrome/browser/ui/search_engines/template_url_table_model.cc

Issue 10802066: Adds support for saving favicon size into history database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/search_engines/template_url_table_model.cc
diff --git a/chrome/browser/ui/search_engines/template_url_table_model.cc b/chrome/browser/ui/search_engines/template_url_table_model.cc
index 280f386e47eb282443a1d4cc7a5d6a06a79dc28a..236a7897cd6677db1494293ba29afd222d0a063c 100644
--- a/chrome/browser/ui/search_engines/template_url_table_model.cc
+++ b/chrome/browser/ui/search_engines/template_url_table_model.cc
@@ -102,9 +102,10 @@ class ModelEntry {
FaviconService::Handle handle,
history::FaviconData favicon) {
load_state_ = LOADED;
- if (favicon.is_valid() && gfx::PNGCodec::Decode(favicon.image_data->front(),
- favicon.image_data->size(),
- &favicon_)) {
+ if (favicon.is_valid() && gfx::PNGCodec::Decode(
+ favicon.bitmap_data->front(),
+ favicon.bitmap_data->size(),
+ &favicon_)) {
model_->FaviconAvailable(this);
}
}

Powered by Google App Engine
This is Rietveld 408576698