OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.h" | 5 #include "chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "chrome/browser/favicon/favicon_service_factory.h" | 13 #include "chrome/browser/favicon/favicon_service_factory.h" |
| 14 #include "chrome/browser/favicon/large_icon_service_factory.h" |
14 #include "chrome/browser/history/top_sites_factory.h" | 15 #include "chrome/browser/history/top_sites_factory.h" |
15 #include "chrome/browser/ntp_tiles/chrome_popular_sites_factory.h" | 16 #include "chrome/browser/ntp_tiles/chrome_popular_sites_factory.h" |
16 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/search/suggestions/image_decoder_impl.h" | 18 #include "chrome/browser/search/suggestions/image_decoder_impl.h" |
18 #include "chrome/browser/search/suggestions/suggestions_service_factory.h" | 19 #include "chrome/browser/search/suggestions/suggestions_service_factory.h" |
19 #include "chrome/browser/supervised_user/supervised_user_service.h" | 20 #include "chrome/browser/supervised_user/supervised_user_service.h" |
20 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" | 21 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" |
21 #include "chrome/browser/supervised_user/supervised_user_service_observer.h" | 22 #include "chrome/browser/supervised_user/supervised_user_service_observer.h" |
22 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" | 23 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" |
23 #include "chrome/browser/thumbnails/thumbnail_list_source.h" | 24 #include "chrome/browser/thumbnails/thumbnail_list_source.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 profile->GetPrefs(), TopSitesFactory::GetForProfile(profile), | 118 profile->GetPrefs(), TopSitesFactory::GetForProfile(profile), |
118 SuggestionsServiceFactory::GetForProfile(profile), | 119 SuggestionsServiceFactory::GetForProfile(profile), |
119 #if defined(OS_ANDROID) | 120 #if defined(OS_ANDROID) |
120 ChromePopularSitesFactory::NewForProfile(profile), | 121 ChromePopularSitesFactory::NewForProfile(profile), |
121 #else | 122 #else |
122 nullptr, | 123 nullptr, |
123 #endif | 124 #endif |
124 base::MakeUnique<ntp_tiles::IconCacherImpl>( | 125 base::MakeUnique<ntp_tiles::IconCacherImpl>( |
125 FaviconServiceFactory::GetForProfile( | 126 FaviconServiceFactory::GetForProfile( |
126 profile, ServiceAccessType::IMPLICIT_ACCESS), | 127 profile, ServiceAccessType::IMPLICIT_ACCESS), |
| 128 LargeIconServiceFactory::GetForBrowserContext(profile), |
127 base::MakeUnique<image_fetcher::ImageFetcherImpl>( | 129 base::MakeUnique<image_fetcher::ImageFetcherImpl>( |
128 base::MakeUnique<suggestions::ImageDecoderImpl>(), | 130 base::MakeUnique<suggestions::ImageDecoderImpl>(), |
129 profile->GetRequestContext())), | 131 profile->GetRequestContext())), |
130 base::MakeUnique<SupervisorBridge>(profile)); | 132 base::MakeUnique<SupervisorBridge>(profile)); |
131 } | 133 } |
OLD | NEW |