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

Side by Side Diff: chrome/browser/sync/profile_sync_service_factory.cc

Issue 2869633003: [Sync] Hook UserEvents into sync. (Closed)
Patch Set: Rebase Created 3 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/sync/profile_sync_service_factory.h" 5 #include "chrome/browser/sync/profile_sync_service_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 15 matching lines...) Expand all
26 #include "chrome/browser/search_engines/template_url_service_factory.h" 26 #include "chrome/browser/search_engines/template_url_service_factory.h"
27 #include "chrome/browser/signin/about_signin_internals_factory.h" 27 #include "chrome/browser/signin/about_signin_internals_factory.h"
28 #include "chrome/browser/signin/chrome_signin_client_factory.h" 28 #include "chrome/browser/signin/chrome_signin_client_factory.h"
29 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h" 29 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h"
30 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 30 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
31 #include "chrome/browser/signin/signin_manager_factory.h" 31 #include "chrome/browser/signin/signin_manager_factory.h"
32 #include "chrome/browser/spellchecker/spellcheck_factory.h" 32 #include "chrome/browser/spellchecker/spellcheck_factory.h"
33 #include "chrome/browser/sync/chrome_sync_client.h" 33 #include "chrome/browser/sync/chrome_sync_client.h"
34 #include "chrome/browser/sync/sessions/sync_sessions_web_contents_router_factory .h" 34 #include "chrome/browser/sync/sessions/sync_sessions_web_contents_router_factory .h"
35 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h" 35 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h"
36 #include "chrome/browser/sync/user_event_service_factory.h"
36 #include "chrome/browser/themes/theme_service_factory.h" 37 #include "chrome/browser/themes/theme_service_factory.h"
37 #include "chrome/browser/undo/bookmark_undo_service_factory.h" 38 #include "chrome/browser/undo/bookmark_undo_service_factory.h"
38 #include "chrome/browser/web_data_service_factory.h" 39 #include "chrome/browser/web_data_service_factory.h"
39 #include "chrome/common/channel_info.h" 40 #include "chrome/common/channel_info.h"
40 #include "components/browser_sync/profile_sync_components_factory_impl.h" 41 #include "components/browser_sync/profile_sync_components_factory_impl.h"
41 #include "components/browser_sync/profile_sync_service.h" 42 #include "components/browser_sync/profile_sync_service.h"
42 #include "components/keyed_service/content/browser_context_dependency_manager.h" 43 #include "components/keyed_service/content/browser_context_dependency_manager.h"
43 #include "components/network_time/network_time_tracker.h" 44 #include "components/network_time/network_time_tracker.h"
44 #include "components/signin/core/browser/profile_oauth2_token_service.h" 45 #include "components/signin/core/browser/profile_oauth2_token_service.h"
45 #include "components/signin/core/browser/signin_manager.h" 46 #include "components/signin/core/browser/signin_manager.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 : BrowserContextKeyedServiceFactory( 120 : BrowserContextKeyedServiceFactory(
120 "ProfileSyncService", 121 "ProfileSyncService",
121 BrowserContextDependencyManager::GetInstance()) { 122 BrowserContextDependencyManager::GetInstance()) {
122 // The ProfileSyncService depends on various SyncableServices being around 123 // The ProfileSyncService depends on various SyncableServices being around
123 // when it is shut down. Specify those dependencies here to build the proper 124 // when it is shut down. Specify those dependencies here to build the proper
124 // destruction order. 125 // destruction order.
125 DependsOn(AboutSigninInternalsFactory::GetInstance()); 126 DependsOn(AboutSigninInternalsFactory::GetInstance());
126 DependsOn(autofill::PersonalDataManagerFactory::GetInstance()); 127 DependsOn(autofill::PersonalDataManagerFactory::GetInstance());
127 DependsOn(BookmarkModelFactory::GetInstance()); 128 DependsOn(BookmarkModelFactory::GetInstance());
128 DependsOn(BookmarkUndoServiceFactory::GetInstance()); 129 DependsOn(BookmarkUndoServiceFactory::GetInstance());
130 DependsOn(browser_sync::UserEventServiceFactory::GetInstance());
129 DependsOn(ChromeSigninClientFactory::GetInstance()); 131 DependsOn(ChromeSigninClientFactory::GetInstance());
130 DependsOn(dom_distiller::DomDistillerServiceFactory::GetInstance()); 132 DependsOn(dom_distiller::DomDistillerServiceFactory::GetInstance());
131 DependsOn(GaiaCookieManagerServiceFactory::GetInstance()); 133 DependsOn(GaiaCookieManagerServiceFactory::GetInstance());
132 DependsOn(gcm::GCMProfileServiceFactory::GetInstance()); 134 DependsOn(gcm::GCMProfileServiceFactory::GetInstance());
133 #if !defined(OS_ANDROID) 135 #if !defined(OS_ANDROID)
134 DependsOn(GlobalErrorServiceFactory::GetInstance()); 136 DependsOn(GlobalErrorServiceFactory::GetInstance());
135 DependsOn(ThemeServiceFactory::GetInstance()); 137 DependsOn(ThemeServiceFactory::GetInstance());
136 #endif // !defined(OS_ANDROID) 138 #endif // !defined(OS_ANDROID)
137 DependsOn(HistoryServiceFactory::GetInstance()); 139 DependsOn(HistoryServiceFactory::GetInstance());
138 DependsOn(invalidation::ProfileInvalidationProviderFactory::GetInstance()); 140 DependsOn(invalidation::ProfileInvalidationProviderFactory::GetInstance());
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 260
259 // static 261 // static
260 void ProfileSyncServiceFactory::SetSyncClientFactoryForTest( 262 void ProfileSyncServiceFactory::SetSyncClientFactoryForTest(
261 SyncClientFactory* client_factory) { 263 SyncClientFactory* client_factory) {
262 client_factory_ = client_factory; 264 client_factory_ = client_factory;
263 } 265 }
264 266
265 // static 267 // static
266 ProfileSyncServiceFactory::SyncClientFactory* 268 ProfileSyncServiceFactory::SyncClientFactory*
267 ProfileSyncServiceFactory::client_factory_ = nullptr; 269 ProfileSyncServiceFactory::client_factory_ = nullptr;
OLDNEW
« no previous file with comments | « chrome/browser/sync/chrome_sync_client.cc ('k') | components/browser_sync/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698