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

Side by Side Diff: chrome/browser/supervised_user/supervised_user_sync_service_factory.cc

Issue 335833003: Rename "managed (mode|user)" to "supervised user" (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments (+ a few other cleanups) Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/managed_mode/managed_user_sync_service_factory.h" 5 #include "chrome/browser/supervised_user/supervised_user_sync_service_factory.h"
6 6
7 #include "chrome/browser/managed_mode/managed_user_sync_service.h"
8 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/supervised_user/supervised_user_sync_service.h"
9 #include "components/keyed_service/content/browser_context_dependency_manager.h" 9 #include "components/keyed_service/content/browser_context_dependency_manager.h"
10 10
11 // static 11 // static
12 ManagedUserSyncService* ManagedUserSyncServiceFactory::GetForProfile( 12 SupervisedUserSyncService* SupervisedUserSyncServiceFactory::GetForProfile(
13 Profile* profile) { 13 Profile* profile) {
14 return static_cast<ManagedUserSyncService*>( 14 return static_cast<SupervisedUserSyncService*>(
15 GetInstance()->GetServiceForBrowserContext(profile, true)); 15 GetInstance()->GetServiceForBrowserContext(profile, true));
16 } 16 }
17 17
18 // static 18 // static
19 ManagedUserSyncServiceFactory* ManagedUserSyncServiceFactory::GetInstance() { 19 SupervisedUserSyncServiceFactory*
20 return Singleton<ManagedUserSyncServiceFactory>::get(); 20 SupervisedUserSyncServiceFactory::GetInstance() {
21 return Singleton<SupervisedUserSyncServiceFactory>::get();
21 } 22 }
22 23
23 ManagedUserSyncServiceFactory::ManagedUserSyncServiceFactory() 24 SupervisedUserSyncServiceFactory::SupervisedUserSyncServiceFactory()
24 : BrowserContextKeyedServiceFactory( 25 : BrowserContextKeyedServiceFactory(
25 "ManagedUserSyncService", 26 "SupervisedUserSyncService",
26 BrowserContextDependencyManager::GetInstance()) { 27 BrowserContextDependencyManager::GetInstance()) {
27 } 28 }
28 29
29 ManagedUserSyncServiceFactory::~ManagedUserSyncServiceFactory() {} 30 SupervisedUserSyncServiceFactory::~SupervisedUserSyncServiceFactory() {}
30 31
31 KeyedService* ManagedUserSyncServiceFactory::BuildServiceInstanceFor( 32 KeyedService* SupervisedUserSyncServiceFactory::BuildServiceInstanceFor(
32 content::BrowserContext* profile) const { 33 content::BrowserContext* profile) const {
33 return new ManagedUserSyncService(static_cast<Profile*>(profile)->GetPrefs()); 34 return new SupervisedUserSyncService(
35 static_cast<Profile*>(profile)->GetPrefs());
34 } 36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698