| 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 "chrome/browser/ntp_snippets/content_suggestions_service_factory.h" | 5 #include "chrome/browser/ntp_snippets/content_suggestions_service_factory.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/feature_list.h" | 9 #include "base/feature_list.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 #include "google_apis/google_api_keys.h" | 52 #include "google_apis/google_api_keys.h" |
| 53 #include "net/url_request/url_request_context_getter.h" | 53 #include "net/url_request/url_request_context_getter.h" |
| 54 | 54 |
| 55 #if defined(OS_ANDROID) | 55 #if defined(OS_ANDROID) |
| 56 #include "chrome/browser/android/chrome_feature_list.h" | 56 #include "chrome/browser/android/chrome_feature_list.h" |
| 57 #include "chrome/browser/android/ntp/ntp_snippets_launcher.h" | 57 #include "chrome/browser/android/ntp/ntp_snippets_launcher.h" |
| 58 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" | 58 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" |
| 59 #include "chrome/browser/ntp_snippets/download_suggestions_provider.h" | 59 #include "chrome/browser/ntp_snippets/download_suggestions_provider.h" |
| 60 #include "components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.
h" | 60 #include "components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.
h" |
| 61 #include "components/ntp_snippets/physical_web_pages/physical_web_page_suggestio
ns_provider.h" | 61 #include "components/ntp_snippets/physical_web_pages/physical_web_page_suggestio
ns_provider.h" |
| 62 #include "components/offline_pages/offline_page_model.h" | 62 #include "components/offline_pages/core/offline_page_model.h" |
| 63 | 63 |
| 64 using content::DownloadManager; | 64 using content::DownloadManager; |
| 65 using ntp_snippets::PhysicalWebPageSuggestionsProvider; | 65 using ntp_snippets::PhysicalWebPageSuggestionsProvider; |
| 66 using ntp_snippets::RecentTabSuggestionsProvider; | 66 using ntp_snippets::RecentTabSuggestionsProvider; |
| 67 using offline_pages::OfflinePageModel; | 67 using offline_pages::OfflinePageModel; |
| 68 using offline_pages::OfflinePageModelFactory; | 68 using offline_pages::OfflinePageModelFactory; |
| 69 #endif // OS_ANDROID | 69 #endif // OS_ANDROID |
| 70 | 70 |
| 71 using bookmarks::BookmarkModel; | 71 using bookmarks::BookmarkModel; |
| 72 using content::BrowserThread; | 72 using content::BrowserThread; |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 } | 311 } |
| 312 | 312 |
| 313 if (base::FeatureList::IsEnabled( | 313 if (base::FeatureList::IsEnabled( |
| 314 ntp_snippets::kForeignSessionsSuggestionsFeature)) { | 314 ntp_snippets::kForeignSessionsSuggestionsFeature)) { |
| 315 RegisterForeignSessionsProvider(sync_service, service, category_factory, | 315 RegisterForeignSessionsProvider(sync_service, service, category_factory, |
| 316 pref_service); | 316 pref_service); |
| 317 } | 317 } |
| 318 | 318 |
| 319 return service; | 319 return service; |
| 320 } | 320 } |
| OLD | NEW |