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

Unified Diff: components/bookmarks/browser/bookmark_model.cc

Issue 331163003: [Refactor] Change FaviconService API to take in a desired pixel size (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « components/bookmarks/browser/bookmark_client.cc ('k') | ui/message_center/message_center_style.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bookmarks/browser/bookmark_model.cc
diff --git a/components/bookmarks/browser/bookmark_model.cc b/components/bookmarks/browser/bookmark_model.cc
index df347fb339977469d922ae79c7674fb24d891c68..35145c08c34f86d07d69bc88ac55d6ce31d08b48 100644
--- a/components/bookmarks/browser/bookmark_model.cc
+++ b/components/bookmarks/browser/bookmark_model.cc
@@ -959,16 +959,16 @@ void BookmarkModel::LoadFavicon(
DCHECK(node->url().is_valid());
node->set_favicon_state(BookmarkNode::LOADING_FAVICON);
- base::CancelableTaskTracker::TaskId taskId = client_->GetFaviconImageForURL(
- node->url(),
- icon_type,
- icon_type == favicon_base::FAVICON ? gfx::kFaviconSize : 0,
- base::Bind(
- &BookmarkModel::OnFaviconDataAvailable,
- base::Unretained(this),
- node,
- icon_type),
- &cancelable_task_tracker_);
+ base::CancelableTaskTracker::TaskId taskId =
+ client_->GetFaviconImageForPageURL(
+ node->url(),
+ icon_type,
+ base::Bind(
+ &BookmarkModel::OnFaviconDataAvailable,
+ base::Unretained(this),
+ node,
+ icon_type),
+ &cancelable_task_tracker_);
if (taskId != base::CancelableTaskTracker::kBadTaskId)
node->set_favicon_load_task_id(taskId);
}
« no previous file with comments | « components/bookmarks/browser/bookmark_client.cc ('k') | ui/message_center/message_center_style.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698