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

Unified Diff: chrome/browser/ui/webui/extensions/extension_icon_source.cc

Issue 10918065: Introduce structures to reduce the number of arguments in the FaviconService methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove the auxiliary structure for non-URL cases. Created 8 years, 3 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/webui/extensions/extension_icon_source.cc
diff --git a/chrome/browser/ui/webui/extensions/extension_icon_source.cc b/chrome/browser/ui/webui/extensions/extension_icon_source.cc
index 72f6a1ec83ad0a104f73270fb788d3b1d74b882c..6e3e1b6e83d0dc72199c1541975dd2a2aff9db07 100644
--- a/chrome/browser/ui/webui/extensions/extension_icon_source.cc
+++ b/chrome/browser/ui/webui/extensions/extension_icon_source.cc
@@ -215,12 +215,13 @@ void ExtensionIconSource::LoadFaviconImage(int request_id) {
GURL favicon_url = GetData(request_id)->extension->GetFullLaunchURL();
FaviconService::Handle handle = favicon_service->GetRawFaviconForURL(
- profile_,
- favicon_url,
- history::FAVICON,
- gfx::kFaviconSize,
+ FaviconService::FaviconForURLParams(
+ profile_,
+ favicon_url,
+ history::FAVICON,
+ gfx::kFaviconSize,
+ &cancelable_consumer_),
ui::SCALE_FACTOR_100P,
- &cancelable_consumer_,
base::Bind(&ExtensionIconSource::OnFaviconDataAvailable,
base::Unretained(this)));
cancelable_consumer_.SetClientData(favicon_service, handle, request_id);

Powered by Google App Engine
This is Rietveld 408576698