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

Unified Diff: chrome/browser/ui/webui/ntp/android/bookmarks_handler.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/ntp/android/bookmarks_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/android/bookmarks_handler.cc b/chrome/browser/ui/webui/ntp/android/bookmarks_handler.cc
index 05d8d35298bb7a479b8840bc52980b36dac5546b..8c9b3ea5abc2a33cd491ae845f28e2b04bfcf555 100644
--- a/chrome/browser/ui/webui/ntp/android/bookmarks_handler.cc
+++ b/chrome/browser/ui/webui/ntp/android/bookmarks_handler.cc
@@ -355,12 +355,13 @@ void BookmarksHandler::HandleCreateHomeScreenBookmarkShortcut(
FaviconService* favicon_service = FaviconServiceFactory::GetForProfile(
profile, Profile::EXPLICIT_ACCESS);
FaviconService::Handle handle = favicon_service->GetRawFaviconForURL(
- profile,
- node->url(),
- history::FAVICON | history::TOUCH_ICON,
- gfx::kFaviconSize,
+ FaviconService::FaviconForURLParams(
+ profile,
+ node->url(),
+ history::FAVICON | history::TOUCH_ICON,
+ gfx::kFaviconSize,
+ &cancelable_consumer_),
ui::SCALE_FACTOR_100P,
- &cancelable_consumer_,
base::Bind(&BookmarksHandler::OnShortcutFaviconDataAvailable,
base::Unretained(this)));
cancelable_consumer_.SetClientData(favicon_service, handle, node);

Powered by Google App Engine
This is Rietveld 408576698