Chromium Code Reviews| Index: chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h |
| diff --git a/chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h b/chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h |
| index b214274539a23bb6f4a801b2bdf9e2e34a5c590b..59013d233caa17a9e3333cbacc18cc108ed8c7b6 100644 |
| --- a/chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h |
| +++ b/chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h |
| @@ -34,6 +34,8 @@ class OwnerKeyUtil; |
| namespace chromeos { |
| +class FakeOwnerSettingsService; |
| + |
| // The class is a profile-keyed service which holds public/private |
| // keypair corresponds to a profile. The keypair is reloaded automatically when |
| // profile is created and TPM token is ready. Note that the private part of a |
| @@ -88,8 +90,9 @@ class OwnerSettingsServiceChromeOS : public ownership::OwnerSettingsService, |
| virtual void OnDeviceSettingsServiceShutdown() override; |
| // Sets the management related settings. |
| - void SetManagementSettings(const ManagementSettings& settings, |
| - const OnManagementSettingsSetCallback& callback); |
| + virtual void SetManagementSettings( |
| + const ManagementSettings& settings, |
| + const OnManagementSettingsSetCallback& callback); |
| // Checks if the user is the device owner, without the user profile having to |
| // been initialized. Should be used only if login state is in safe mode. |
| @@ -117,6 +120,7 @@ class OwnerSettingsServiceChromeOS : public ownership::OwnerSettingsService, |
| } |
| private: |
| + friend class FakeOwnerSettingsService; |
|
ygorshenin1
2015/01/12 10:08:55
Why do you need this friend declaration?
davidyu
2015/01/13 05:43:52
For the constructor.
ygorshenin1
2015/01/13 11:56:38
Ah, I see. Feel free to mark constructor as protec
|
| friend class OwnerSettingsServiceChromeOSFactory; |
| OwnerSettingsServiceChromeOS( |