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

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

Issue 674273002: Cleanup: Remove unneeded chrome/common/pref_names.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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 "chrome/browser/autofill/personal_data_manager_factory.h" 10 #include "chrome/browser/autofill/personal_data_manager_factory.h"
(...skipping 11 matching lines...) Expand all
22 #include "chrome/browser/signin/chrome_signin_client_factory.h" 22 #include "chrome/browser/signin/chrome_signin_client_factory.h"
23 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 23 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
24 #include "chrome/browser/signin/signin_manager_factory.h" 24 #include "chrome/browser/signin/signin_manager_factory.h"
25 #include "chrome/browser/sync/profile_sync_components_factory_impl.h" 25 #include "chrome/browser/sync/profile_sync_components_factory_impl.h"
26 #include "chrome/browser/sync/profile_sync_service.h" 26 #include "chrome/browser/sync/profile_sync_service.h"
27 #include "chrome/browser/sync/startup_controller.h" 27 #include "chrome/browser/sync/startup_controller.h"
28 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h" 28 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h"
29 #include "chrome/browser/themes/theme_service_factory.h" 29 #include "chrome/browser/themes/theme_service_factory.h"
30 #include "chrome/browser/ui/global_error/global_error_service_factory.h" 30 #include "chrome/browser/ui/global_error/global_error_service_factory.h"
31 #include "chrome/browser/webdata/web_data_service_factory.h" 31 #include "chrome/browser/webdata/web_data_service_factory.h"
32 #include "chrome/common/pref_names.h"
33 #include "components/keyed_service/content/browser_context_dependency_manager.h" 32 #include "components/keyed_service/content/browser_context_dependency_manager.h"
34 #include "components/signin/core/browser/profile_oauth2_token_service.h" 33 #include "components/signin/core/browser/profile_oauth2_token_service.h"
35 #include "components/signin/core/browser/signin_manager.h" 34 #include "components/signin/core/browser/signin_manager.h"
36 #include "url/gurl.h" 35 #include "url/gurl.h"
37 36
38 #if defined(ENABLE_EXTENSIONS) 37 #if defined(ENABLE_EXTENSIONS)
39 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac tory.h" 38 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac tory.h"
40 #include "extensions/browser/extension_system_provider.h" 39 #include "extensions/browser/extension_system_provider.h"
41 #include "extensions/browser/extensions_browser_client.h" 40 #include "extensions/browser/extensions_browser_client.h"
42 #endif 41 #endif
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 146
148 pss->factory()->RegisterDataTypes(pss); 147 pss->factory()->RegisterDataTypes(pss);
149 pss->Initialize(); 148 pss->Initialize();
150 return pss; 149 return pss;
151 } 150 }
152 151
153 // static 152 // static
154 bool ProfileSyncServiceFactory::HasProfileSyncService(Profile* profile) { 153 bool ProfileSyncServiceFactory::HasProfileSyncService(Profile* profile) {
155 return GetInstance()->GetServiceForBrowserContext(profile, false) != NULL; 154 return GetInstance()->GetServiceForBrowserContext(profile, false) != NULL;
156 } 155 }
OLDNEW
« no previous file with comments | « chrome/browser/supervised_user/supervised_user_browsertest.cc ('k') | chrome/browser/sync/sync_error_notifier_ash_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698