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

Unified Diff: chrome/browser/ui/toolbar/back_forward_menu_model.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/toolbar/back_forward_menu_model.cc
diff --git a/chrome/browser/ui/toolbar/back_forward_menu_model.cc b/chrome/browser/ui/toolbar/back_forward_menu_model.cc
index 83135f2241a031f4df42ebd247424c907fa86d8e..5e0859f635aba016bf2dbe4100ca6e096864f905 100644
--- a/chrome/browser/ui/toolbar/back_forward_menu_model.cc
+++ b/chrome/browser/ui/toolbar/back_forward_menu_model.cc
@@ -251,8 +251,8 @@ void BackForwardMenuModel::FetchFavicon(NavigationEntry* entry) {
if (!favicon_service)
return;
FaviconService::Handle handle = favicon_service->GetFaviconImageForURL(
- browser_->profile(), entry->GetURL(), history::FAVICON,
- gfx::kFaviconSize, &load_consumer_,
+ FaviconService::FaviconForURLParams(browser_->profile(), entry->GetURL(),
+ history::FAVICON, gfx::kFaviconSize, &load_consumer_),
base::Bind(&BackForwardMenuModel::OnFavIconDataAvailable,
base::Unretained(this)));
load_consumer_.SetClientData(favicon_service, handle, entry->GetUniqueID());

Powered by Google App Engine
This is Rietveld 408576698