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

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: Rebase. Created 5 years, 11 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 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 0d587caafaf79de0000334b8e716797f7fc459dd..f1394b4d42dea08ada001c382d492b1448e27faf 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
@@ -87,8 +89,9 @@ class OwnerSettingsServiceChromeOS : public ownership::OwnerSettingsService,
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.
@@ -115,14 +118,15 @@ class OwnerSettingsServiceChromeOS : public ownership::OwnerSettingsService,
has_pending_management_settings_;
}
- private:
- friend class OwnerSettingsServiceChromeOSFactory;
-
+ protected:
OwnerSettingsServiceChromeOS(
DeviceSettingsService* device_settings_service,
Profile* profile,
const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util);
+ private:
+ friend class OwnerSettingsServiceChromeOSFactory;
+
// OwnerSettingsService protected interface overrides:
// Reloads private key from profile's NSS slots, responds via |callback|.

Powered by Google App Engine
This is Rietveld 408576698