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

Unified Diff: chrome/browser/ui/webui/favicon_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/favicon_source.cc
diff --git a/chrome/browser/ui/webui/favicon_source.cc b/chrome/browser/ui/webui/favicon_source.cc
index b2fe5f9913f7f276bb8b8736279fcc0e1e00bd61..5016affcf605ce35d98d072ede4d3de4926878b7 100644
--- a/chrome/browser/ui/webui/favicon_source.cc
+++ b/chrome/browser/ui/webui/favicon_source.cc
@@ -109,12 +109,13 @@ void FaviconSource::StartDataRequest(const std::string& path,
// TODO(estade): fetch the requested size.
handle = favicon_service->GetRawFaviconForURL(
- profile_,
- url,
- icon_types_,
- gfx::kFaviconSize,
+ FaviconService::FaviconForURLParams(
+ profile_,
+ url,
+ icon_types_,
+ gfx::kFaviconSize,
+ &cancelable_consumer_),
ui::SCALE_FACTOR_100P,
- &cancelable_consumer_,
base::Bind(&FaviconSource::OnFaviconDataAvailable,
base::Unretained(this)));
}

Powered by Google App Engine
This is Rietveld 408576698