| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ios/chrome/browser/ntp_tiles/ios_most_visited_sites_factory.h" | 5 #include "ios/chrome/browser/ntp_tiles/ios_most_visited_sites_factory.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/sequenced_task_runner.h" |
| 8 #include "base/task_scheduler/post_task.h" | 9 #include "base/task_scheduler/post_task.h" |
| 9 #include "components/history/core/browser/top_sites.h" | 10 #include "components/history/core/browser/top_sites.h" |
| 10 #include "components/image_fetcher/core/image_fetcher_impl.h" | 11 #include "components/image_fetcher/core/image_fetcher_impl.h" |
| 11 #include "components/image_fetcher/ios/ios_image_decoder_impl.h" | 12 #include "components/image_fetcher/ios/ios_image_decoder_impl.h" |
| 12 #include "components/keyed_service/core/service_access_type.h" | 13 #include "components/keyed_service/core/service_access_type.h" |
| 13 #include "components/ntp_tiles/icon_cacher_impl.h" | 14 #include "components/ntp_tiles/icon_cacher_impl.h" |
| 14 #include "components/ntp_tiles/most_visited_sites.h" | 15 #include "components/ntp_tiles/most_visited_sites.h" |
| 15 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 16 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
| 16 #include "ios/chrome/browser/favicon/favicon_service_factory.h" | 17 #include "ios/chrome/browser/favicon/favicon_service_factory.h" |
| 17 #include "ios/chrome/browser/favicon/ios_chrome_large_icon_service_factory.h" | 18 #include "ios/chrome/browser/favicon/ios_chrome_large_icon_service_factory.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 33 IOSPopularSitesFactory::NewForBrowserState(browser_state), | 34 IOSPopularSitesFactory::NewForBrowserState(browser_state), |
| 34 base::MakeUnique<ntp_tiles::IconCacherImpl>( | 35 base::MakeUnique<ntp_tiles::IconCacherImpl>( |
| 35 ios::FaviconServiceFactory::GetForBrowserState( | 36 ios::FaviconServiceFactory::GetForBrowserState( |
| 36 browser_state, ServiceAccessType::IMPLICIT_ACCESS), | 37 browser_state, ServiceAccessType::IMPLICIT_ACCESS), |
| 37 IOSChromeLargeIconServiceFactory::GetForBrowserState(browser_state), | 38 IOSChromeLargeIconServiceFactory::GetForBrowserState(browser_state), |
| 38 base::MakeUnique<image_fetcher::ImageFetcherImpl>( | 39 base::MakeUnique<image_fetcher::ImageFetcherImpl>( |
| 39 image_fetcher::CreateIOSImageDecoder(task_runner), | 40 image_fetcher::CreateIOSImageDecoder(task_runner), |
| 40 browser_state->GetRequestContext())), | 41 browser_state->GetRequestContext())), |
| 41 nil); | 42 nil); |
| 42 } | 43 } |
| OLD | NEW |