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

Side by Side Diff: components/keyed_service/ios/browser_state_dependency_manager.cc

Issue 1090373003: Allow cross dependencies between BCKSF and BSKSF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove wrapper methods Created 5 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/keyed_service/ios/browser_state_dependency_manager.h" 5 #include "components/keyed_service/ios/browser_state_dependency_manager.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "base/trace_event/trace_event.h" 8 #include "base/trace_event/trace_event.h"
9 #include "ios/web/public/browser_state.h" 9 #include "ios/web/public/browser_state.h"
10 10
11 // static 11 // static
12 BrowserStateDependencyManager* BrowserStateDependencyManager::GetInstance() { 12 BrowserStateDependencyManager* BrowserStateDependencyManager::GetInstance() {
13 return Singleton<BrowserStateDependencyManager>::get(); 13 return Singleton<BrowserStateDependencyManager>::get();
14 } 14 }
15 15
16 void BrowserStateDependencyManager::RegisterProfilePrefsForServices( 16 void BrowserStateDependencyManager::RegisterBrowserStatePrefsForServices(
17 const web::BrowserState* context, 17 web::BrowserState* context,
18 user_prefs::PrefRegistrySyncable* pref_registry) { 18 user_prefs::PrefRegistrySyncable* pref_registry) {
19 RegisterPrefsForServices(context, pref_registry); 19 RegisterPrefsForServices(context, pref_registry);
20 } 20 }
21 21
22 void BrowserStateDependencyManager::CreateBrowserStateServices( 22 void BrowserStateDependencyManager::CreateBrowserStateServices(
23 web::BrowserState* context) { 23 web::BrowserState* context) {
24 DoCreateBrowserStateServices(context, false); 24 DoCreateBrowserStateServices(context, false);
25 } 25 }
26 26
27 void BrowserStateDependencyManager::CreateBrowserStateServicesForTest( 27 void BrowserStateDependencyManager::CreateBrowserStateServicesForTest(
(...skipping 27 matching lines...) Expand all
55 void BrowserStateDependencyManager::DoCreateBrowserStateServices( 55 void BrowserStateDependencyManager::DoCreateBrowserStateServices(
56 web::BrowserState* context, 56 web::BrowserState* context,
57 bool is_testing_context) { 57 bool is_testing_context) {
58 TRACE_EVENT0("browser", 58 TRACE_EVENT0("browser",
59 "BrowserStateDependencyManager::DoCreateBrowserStateServices") 59 "BrowserStateDependencyManager::DoCreateBrowserStateServices")
60 DependencyManager::CreateContextServices(context, is_testing_context); 60 DependencyManager::CreateContextServices(context, is_testing_context);
61 } 61 }
62 62
63 #ifndef NDEBUG 63 #ifndef NDEBUG
64 void BrowserStateDependencyManager::DumpContextDependencies( 64 void BrowserStateDependencyManager::DumpContextDependencies(
65 const base::SupportsUserData* context) const { 65 base::SupportsUserData* context) const {
66 } 66 }
67 #endif // NDEBUG 67 #endif // NDEBUG
OLDNEW
« no previous file with comments | « components/keyed_service/ios/browser_state_dependency_manager.h ('k') | components/keyed_service/ios/browser_state_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698