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

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

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Created 5 years, 1 month 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "chrome/browser/autofill/personal_data_manager_factory.h" 11 #include "chrome/browser/autofill/personal_data_manager_factory.h"
12 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 12 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
13 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/defaults.h" 14 #include "chrome/browser/defaults.h"
15 #include "chrome/browser/history/history_service_factory.h" 15 #include "chrome/browser/history/history_service_factory.h"
16 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" 16 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h"
17 #include "chrome/browser/password_manager/password_store_factory.h" 17 #include "chrome/browser/password_manager/password_store_factory.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/profiles/profile_manager.h" 19 #include "chrome/browser/profiles/profile_manager.h"
20 #include "chrome/browser/search_engines/template_url_service_factory.h" 20 #include "chrome/browser/search_engines/template_url_service_factory.h"
21 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" 21 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
22 #include "chrome/browser/sessions/tab_restore_service_factory.h" 22 #include "chrome/browser/sessions/tab_restore_service_factory.h"
23 #include "chrome/browser/signin/about_signin_internals_factory.h" 23 #include "chrome/browser/signin/about_signin_internals_factory.h"
24 #include "chrome/browser/signin/chrome_signin_client_factory.h" 24 #include "chrome/browser/signin/chrome_signin_client_factory.h"
25 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 25 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
26 #include "chrome/browser/signin/signin_manager_factory.h" 26 #include "chrome/browser/signin/signin_manager_factory.h"
27 #include "chrome/browser/sync/chrome_sync_client.h" 27 #include "chrome/browser/sync/chrome_sync_client.h"
28 #include "chrome/browser/sync/profile_sync_components_factory_impl.h" 28 #include "chrome/browser/sync/profile_sync_components_factory_impl.h"
29 #include "chrome/browser/sync/profile_sync_service.h"
30 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h" 29 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h"
31 #include "chrome/browser/themes/theme_service_factory.h" 30 #include "chrome/browser/themes/theme_service_factory.h"
32 #include "chrome/browser/web_data_service_factory.h" 31 #include "chrome/browser/web_data_service_factory.h"
33 #include "chrome/common/channel_info.h" 32 #include "chrome/common/channel_info.h"
33 #include "components/browser_sync/browser/profile_sync_service.h"
34 #include "components/keyed_service/content/browser_context_dependency_manager.h" 34 #include "components/keyed_service/content/browser_context_dependency_manager.h"
35 #include "components/network_time/network_time_tracker.h" 35 #include "components/network_time/network_time_tracker.h"
36 #include "components/signin/core/browser/profile_oauth2_token_service.h" 36 #include "components/signin/core/browser/profile_oauth2_token_service.h"
37 #include "components/signin/core/browser/signin_manager.h" 37 #include "components/signin/core/browser/signin_manager.h"
38 #include "components/sync_driver/signin_manager_wrapper.h" 38 #include "components/sync_driver/signin_manager_wrapper.h"
39 #include "components/sync_driver/startup_controller.h" 39 #include "components/sync_driver/startup_controller.h"
40 #include "components/sync_driver/sync_util.h" 40 #include "components/sync_driver/sync_util.h"
41 #include "components/variations/variations_associated_data.h" 41 #include "components/variations/variations_associated_data.h"
42 #include "content/public/browser/browser_thread.h" 42 #include "content/public/browser/browser_thread.h"
43 #include "url/gurl.h" 43 #include "url/gurl.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 content::BrowserThread::FILE), 197 content::BrowserThread::FILE),
198 content::BrowserThread::GetBlockingPool()); 198 content::BrowserThread::GetBlockingPool());
199 pss->Initialize(); 199 pss->Initialize();
200 return pss; 200 return pss;
201 } 201 }
202 202
203 // static 203 // static
204 bool ProfileSyncServiceFactory::HasProfileSyncService(Profile* profile) { 204 bool ProfileSyncServiceFactory::HasProfileSyncService(Profile* profile) {
205 return GetInstance()->GetServiceForBrowserContext(profile, false) != NULL; 205 return GetInstance()->GetServiceForBrowserContext(profile, false) != NULL;
206 } 206 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698