| OLD | NEW |
| 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/chromeos/ownership/owner_settings_service_chromeos_fact
ory.h" | 5 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact
ory.h" |
| 6 | 6 |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" | 8 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" |
| 9 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 9 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 10 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 10 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 OwnerSettingsServiceChromeOS* | 42 OwnerSettingsServiceChromeOS* |
| 43 OwnerSettingsServiceChromeOSFactory::GetForBrowserContext( | 43 OwnerSettingsServiceChromeOSFactory::GetForBrowserContext( |
| 44 content::BrowserContext* context) { | 44 content::BrowserContext* context) { |
| 45 return static_cast<OwnerSettingsServiceChromeOS*>( | 45 return static_cast<OwnerSettingsServiceChromeOS*>( |
| 46 GetInstance()->GetServiceForBrowserContext(context, true)); | 46 GetInstance()->GetServiceForBrowserContext(context, true)); |
| 47 } | 47 } |
| 48 | 48 |
| 49 // static | 49 // static |
| 50 OwnerSettingsServiceChromeOSFactory* | 50 OwnerSettingsServiceChromeOSFactory* |
| 51 OwnerSettingsServiceChromeOSFactory::GetInstance() { | 51 OwnerSettingsServiceChromeOSFactory::GetInstance() { |
| 52 return Singleton<OwnerSettingsServiceChromeOSFactory>::get(); | 52 return base::Singleton<OwnerSettingsServiceChromeOSFactory>::get(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 // static | 55 // static |
| 56 void OwnerSettingsServiceChromeOSFactory::SetDeviceSettingsServiceForTesting( | 56 void OwnerSettingsServiceChromeOSFactory::SetDeviceSettingsServiceForTesting( |
| 57 DeviceSettingsService* device_settings_service) { | 57 DeviceSettingsService* device_settings_service) { |
| 58 g_device_settings_service_for_testing_ = device_settings_service; | 58 g_device_settings_service_for_testing_ = device_settings_service; |
| 59 } | 59 } |
| 60 | 60 |
| 61 scoped_refptr<ownership::OwnerKeyUtil> | 61 scoped_refptr<ownership::OwnerKeyUtil> |
| 62 OwnerSettingsServiceChromeOSFactory::GetOwnerKeyUtil() { | 62 OwnerSettingsServiceChromeOSFactory::GetOwnerKeyUtil() { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 90 const { | 90 const { |
| 91 return true; | 91 return true; |
| 92 } | 92 } |
| 93 | 93 |
| 94 KeyedService* OwnerSettingsServiceChromeOSFactory::BuildServiceInstanceFor( | 94 KeyedService* OwnerSettingsServiceChromeOSFactory::BuildServiceInstanceFor( |
| 95 content::BrowserContext* context) const { | 95 content::BrowserContext* context) const { |
| 96 return BuildInstanceFor(context); | 96 return BuildInstanceFor(context); |
| 97 } | 97 } |
| 98 | 98 |
| 99 } // namespace chromeos | 99 } // namespace chromeos |
| OLD | NEW |