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

Unified Diff: chrome/browser/sync/glue/session_model_associator.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/sync/glue/session_model_associator.cc
diff --git a/chrome/browser/sync/glue/session_model_associator.cc b/chrome/browser/sync/glue/session_model_associator.cc
index 58dc3a6d7004965a86d5c668458f91bc75a41df8..2ec6dea25fb349ac4e76c94d7ce76e2cc3c03790 100644
--- a/chrome/browser/sync/glue/session_model_associator.cc
+++ b/chrome/browser/sync/glue/session_model_associator.cc
@@ -553,8 +553,9 @@ void SessionModelAssociator::LoadFaviconForTab(TabLink* tab_link) {
}
DVLOG(1) << "Triggering favicon load for url " << tab_link->url().spec();
FaviconService::Handle handle = favicon_service->GetRawFaviconForURL(
- profile_, tab_link->url(), history::FAVICON, gfx::kFaviconSize,
- ui::SCALE_FACTOR_100P, &load_consumer_,
+ FaviconService::FaviconForURLParams(profile_, tab_link->url(),
+ history::FAVICON, gfx::kFaviconSize, &load_consumer_),
+ ui::SCALE_FACTOR_100P,
base::Bind(&SessionModelAssociator::OnFaviconDataAvailable,
AsWeakPtr()));
load_consumer_.SetClientData(favicon_service, handle, tab_id);

Powered by Google App Engine
This is Rietveld 408576698