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

Side by Side Diff: chrome/browser/supervised_user/supervised_user_shared_settings_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 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 "chrome/browser/managed_mode/managed_user_shared_settings_service_facto ry.h" 5 #include "chrome/browser/supervised_user/supervised_user_shared_settings_service _factory.h"
6 6
7 #include "chrome/browser/managed_mode/managed_user_shared_settings_service.h" 7 #include "chrome/browser/supervised_user/supervised_user_shared_settings_service .h"
8 #include "components/keyed_service/content/browser_context_dependency_manager.h" 8 #include "components/keyed_service/content/browser_context_dependency_manager.h"
9 #include "components/user_prefs/user_prefs.h" 9 #include "components/user_prefs/user_prefs.h"
10 #include "content/public/browser/browser_context.h" 10 #include "content/public/browser/browser_context.h"
11 11
12 // static 12 // static
13 ManagedUserSharedSettingsService* 13 SupervisedUserSharedSettingsService*
14 ManagedUserSharedSettingsServiceFactory::GetForBrowserContext( 14 SupervisedUserSharedSettingsServiceFactory::GetForBrowserContext(
15 content::BrowserContext* profile) { 15 content::BrowserContext* profile) {
16 return static_cast<ManagedUserSharedSettingsService*>( 16 return static_cast<SupervisedUserSharedSettingsService*>(
17 GetInstance()->GetServiceForBrowserContext(profile, true)); 17 GetInstance()->GetServiceForBrowserContext(profile, true));
18 } 18 }
19 19
20 // static 20 // static
21 ManagedUserSharedSettingsServiceFactory* 21 SupervisedUserSharedSettingsServiceFactory*
22 ManagedUserSharedSettingsServiceFactory::GetInstance() { 22 SupervisedUserSharedSettingsServiceFactory::GetInstance() {
23 return Singleton<ManagedUserSharedSettingsServiceFactory>::get(); 23 return Singleton<SupervisedUserSharedSettingsServiceFactory>::get();
24 } 24 }
25 25
26 ManagedUserSharedSettingsServiceFactory:: 26 SupervisedUserSharedSettingsServiceFactory::
27 ManagedUserSharedSettingsServiceFactory() 27 SupervisedUserSharedSettingsServiceFactory()
28 : BrowserContextKeyedServiceFactory( 28 : BrowserContextKeyedServiceFactory(
29 "ManagedUserSharedSettingsService", 29 "SupervisedUserSharedSettingsService",
30 BrowserContextDependencyManager::GetInstance()) {} 30 BrowserContextDependencyManager::GetInstance()) {}
31 31
32 ManagedUserSharedSettingsServiceFactory:: 32 SupervisedUserSharedSettingsServiceFactory::
33 ~ManagedUserSharedSettingsServiceFactory() {} 33 ~SupervisedUserSharedSettingsServiceFactory() {}
34 34
35 KeyedService* ManagedUserSharedSettingsServiceFactory::BuildServiceInstanceFor( 35 KeyedService*
36 SupervisedUserSharedSettingsServiceFactory::BuildServiceInstanceFor(
36 content::BrowserContext* profile) const { 37 content::BrowserContext* profile) const {
37 return new ManagedUserSharedSettingsService( 38 return new SupervisedUserSharedSettingsService(
38 user_prefs::UserPrefs::Get(profile)); 39 user_prefs::UserPrefs::Get(profile));
39 } 40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698