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

Unified Diff: chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h

Issue 751703003: Implemented consumer management unenrollment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dcpm
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698