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

Unified Diff: chrome/browser/favicon/favicon_service_factory.cc

Issue 2347173002: Extend FaviconService to support fetching favicons from a Google server (Closed)
Patch Set: Requiring minimum_size Created 4 years 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
« no previous file with comments | « no previous file | components/favicon/core/DEPS » ('j') | components/favicon/core/favicon_service.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/favicon/favicon_service_factory.cc
diff --git a/chrome/browser/favicon/favicon_service_factory.cc b/chrome/browser/favicon/favicon_service_factory.cc
index 81528e4c69df599acce840c7d20146b536b1bbb4..00139213bcd91a9a7378ceaba1d11cbd367b12b6 100644
--- a/chrome/browser/favicon/favicon_service_factory.cc
+++ b/chrome/browser/favicon/favicon_service_factory.cc
@@ -9,8 +9,11 @@
#include "chrome/browser/favicon/chrome_favicon_client.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/search/suggestions/image_decoder_impl.h"
#include "components/favicon/core/favicon_service.h"
#include "components/history/core/browser/history_service.h"
+#include "components/image_fetcher/image_decoder.h"
+#include "components/image_fetcher/image_fetcher_impl.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/prefs/pref_service.h"
@@ -19,10 +22,14 @@ namespace {
std::unique_ptr<KeyedService> BuildFaviconService(
content::BrowserContext* context) {
Profile* profile = Profile::FromBrowserContext(context);
+
return base::MakeUnique<favicon::FaviconService>(
base::WrapUnique(new ChromeFaviconClient(profile)),
HistoryServiceFactory::GetForProfile(profile,
- ServiceAccessType::EXPLICIT_ACCESS));
+ ServiceAccessType::EXPLICIT_ACCESS),
+ base::MakeUnique<image_fetcher::ImageFetcherImpl>(
+ base::MakeUnique<suggestions::ImageDecoderImpl>(),
+ profile->GetRequestContext()));
pkotwicz 2016/12/19 00:03:28 Is ImageFetcherImpl the new hot thing? ContentFavi
jkrcal 2016/12/19 17:07:19 I need to ask colleagues whether image fetcher has
pkotwicz 2016/12/20 02:33:01 If I were you I would wait to get feedback from yo
jkrcal 2017/02/06 19:01:22 Indeed, the ImageFetcherImpl is not ready to decod
pkotwicz 2017/02/07 04:55:54 I am ok with the ImageFetcherImpl
}
} // namespace
« no previous file with comments | « no previous file | components/favicon/core/DEPS » ('j') | components/favicon/core/favicon_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698