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

Side by Side Diff: chrome/browser/ntp_snippets/content_suggestions_service_factory.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
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
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 #include "components/physical_web/data_source/physical_web_data_source.h" 63 #include "components/physical_web/data_source/physical_web_data_source.h"
64 64
65 using content::DownloadManager; 65 using content::DownloadManager;
66 using ntp_snippets::PhysicalWebPageSuggestionsProvider; 66 using ntp_snippets::PhysicalWebPageSuggestionsProvider;
67 using ntp_snippets::RecentTabSuggestionsProvider; 67 using ntp_snippets::RecentTabSuggestionsProvider;
68 using offline_pages::OfflinePageModel; 68 using offline_pages::OfflinePageModel;
69 using offline_pages::OfflinePageModelFactory; 69 using offline_pages::OfflinePageModelFactory;
70 using physical_web::PhysicalWebDataSource; 70 using physical_web::PhysicalWebDataSource;
71 #endif // OS_ANDROID 71 #endif // OS_ANDROID
72 72
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 } 318 }
319 319
320 if (base::FeatureList::IsEnabled( 320 if (base::FeatureList::IsEnabled(
321 ntp_snippets::kForeignSessionsSuggestionsFeature)) { 321 ntp_snippets::kForeignSessionsSuggestionsFeature)) {
322 RegisterForeignSessionsProvider(sync_service, service, category_factory, 322 RegisterForeignSessionsProvider(sync_service, service, category_factory,
323 pref_service); 323 pref_service);
324 } 324 }
325 325
326 return service; 326 return service;
327 } 327 }
OLDNEW
« no previous file with comments | « chrome/browser/net/net_error_tab_helper.cc ('k') | chrome/browser/ntp_snippets/download_suggestions_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698