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

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

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. Created 4 years, 2 months 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 using ntp_snippets::NTPSnippetsDatabase; 76 using ntp_snippets::NTPSnippetsDatabase;
77 using ntp_snippets::NTPSnippetsFetcher; 77 using ntp_snippets::NTPSnippetsFetcher;
78 using ntp_snippets::NTPSnippetsService; 78 using ntp_snippets::NTPSnippetsService;
79 using ntp_snippets::NTPSnippetsScheduler; 79 using ntp_snippets::NTPSnippetsScheduler;
80 using ntp_snippets::NTPSnippetsStatusService; 80 using ntp_snippets::NTPSnippetsStatusService;
81 using ntp_snippets::ForeignSessionsSuggestionsProvider; 81 using ntp_snippets::ForeignSessionsSuggestionsProvider;
82 using ntp_snippets::TabDelegateSyncAdapter; 82 using ntp_snippets::TabDelegateSyncAdapter;
83 using suggestions::ImageDecoderImpl; 83 using suggestions::ImageDecoderImpl;
84 using suggestions::SuggestionsService; 84 using suggestions::SuggestionsService;
85 using suggestions::SuggestionsServiceFactory; 85 using suggestions::SuggestionsServiceFactory;
86 using sync_driver::SyncService; 86 using syncer::SyncService;
87 87
88 namespace { 88 namespace {
89 89
90 // Clear the tasks that can be scheduled by running services. 90 // Clear the tasks that can be scheduled by running services.
91 void ClearScheduledTasks() { 91 void ClearScheduledTasks() {
92 #if defined(OS_ANDROID) 92 #if defined(OS_ANDROID)
93 NTPSnippetsLauncher::Get()->Unschedule(); 93 NTPSnippetsLauncher::Get()->Unschedule();
94 #endif // OS_ANDROID 94 #endif // OS_ANDROID
95 } 95 }
96 96
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 284 }
285 285
286 if (base::FeatureList::IsEnabled( 286 if (base::FeatureList::IsEnabled(
287 ntp_snippets::kForeignSessionsSuggestionsFeature)) { 287 ntp_snippets::kForeignSessionsSuggestionsFeature)) {
288 RegisterForeignSessionsProvider(sync_service, service, category_factory, 288 RegisterForeignSessionsProvider(sync_service, service, category_factory,
289 pref_service); 289 pref_service);
290 } 290 }
291 291
292 return service; 292 return service;
293 } 293 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698