Index: chrome/browser/search/instant_service.cc |
diff --git a/chrome/browser/search/instant_service.cc b/chrome/browser/search/instant_service.cc |
index bf75e9a5c75ce7f1de4659b1f5c70591590a9107..d44cfccf911b6f9abc48bb0d806c78c5e5736ae1 100644 |
--- a/chrome/browser/search/instant_service.cc |
+++ b/chrome/browser/search/instant_service.cc |
@@ -6,7 +6,7 @@ |
#include "chrome/browser/chrome_notification_types.h" |
#include "chrome/browser/favicon/fallback_icon_service_factory.h" |
-#include "chrome/browser/favicon/favicon_service_factory.h" |
+#include "chrome/browser/favicon/large_icon_service_factory.h" |
#include "chrome/browser/history/top_sites_factory.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/search/instant_io_context.h" |
@@ -25,7 +25,7 @@ |
#include "chrome/browser/ui/webui/theme_source.h" |
#include "chrome/common/render_messages.h" |
#include "components/favicon/core/fallback_icon_service.h" |
-#include "components/favicon/core/favicon_service.h" |
+#include "components/favicon/core/large_icon_service.h" |
#include "components/history/core/browser/top_sites.h" |
#include "components/keyed_service/core/service_access_type.h" |
#include "components/search_engines/template_url_service.h" |
@@ -118,18 +118,16 @@ InstantService::InstantService(Profile* profile) |
content::URLDataSource::Add(profile_, new ThumbnailListSource(profile_)); |
#endif // !defined(OS_ANDROID) |
- favicon::FaviconService* favicon_service = |
- FaviconServiceFactory::GetForProfile(profile_, |
- ServiceAccessType::EXPLICIT_ACCESS); |
favicon::FallbackIconService* fallback_icon_service = |
FallbackIconServiceFactory::GetForBrowserContext(profile_); |
- |
- content::URLDataSource::Add(profile_, |
- new LargeIconSource(favicon_service, fallback_icon_service)); |
+ favicon::LargeIconService* large_icon_service = |
+ LargeIconServiceFactory::GetForBrowserContext(profile_); |
content::URLDataSource::Add( |
profile_, new FallbackIconSource(fallback_icon_service)); |
content::URLDataSource::Add( |
profile_, new FaviconSource(profile_, FaviconSource::FAVICON)); |
+ content::URLDataSource::Add(profile_, |
kmadhusu
2015/04/21 17:00:27
style nit: For function declarations and definitio
beaudoin
2015/04/21 18:09:54
Done.
|
+ new LargeIconSource(fallback_icon_service, large_icon_service)); |
content::URLDataSource::Add(profile_, new MostVisitedIframeSource()); |
content::URLDataSource::Add( |
profile_, new suggestions::SuggestionsSource(profile_)); |