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

Unified Diff: chrome/browser/ui/intents/web_intent_picker_controller.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/intents/web_intent_picker_controller.cc
diff --git a/chrome/browser/ui/intents/web_intent_picker_controller.cc b/chrome/browser/ui/intents/web_intent_picker_controller.cc
index b7ce59cef5c831a1bcc3c7f6b2acdfd074eab461..67f9ba6daafc85f6f9e479b2c2396215724c0b2b 100644
--- a/chrome/browser/ui/intents/web_intent_picker_controller.cc
+++ b/chrome/browser/ui/intents/web_intent_picker_controller.cc
@@ -502,11 +502,12 @@ void WebIntentPickerController::AddServiceToModel(
pending_async_count_++;
FaviconService::Handle handle = favicon_service->GetFaviconImageForURL(
- tab_contents_->profile(),
- service.service_url,
- history::FAVICON,
- gfx::kFaviconSize,
- &favicon_consumer_,
+ FaviconService::FaviconForURLParams(
+ tab_contents_->profile(),
+ service.service_url,
+ history::FAVICON,
+ gfx::kFaviconSize,
+ &favicon_consumer_),
base::Bind(
&WebIntentPickerController::OnFaviconDataAvailable,
weak_ptr_factory_.GetWeakPtr()));

Powered by Google App Engine
This is Rietveld 408576698