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

Unified Diff: chrome/browser/chromeos/ownership/fake_owner_settings_service.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
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/ownership/fake_owner_settings_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/ownership/fake_owner_settings_service.h
diff --git a/chrome/browser/chromeos/ownership/fake_owner_settings_service.h b/chrome/browser/chromeos/ownership/fake_owner_settings_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..bed4d066792373a170db9a4dadaa7a41f08ccfaf
--- /dev/null
+++ b/chrome/browser/chromeos/ownership/fake_owner_settings_service.h
@@ -0,0 +1,49 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_OWNERSHIP_FAKE_OWNER_SETTINGS_SERVICE_H_
+#define CHROME_BROWSER_CHROMEOS_OWNERSHIP_FAKE_OWNER_SETTINGS_SERVICE_H_
+
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h"
+
+class Profile;
+
+namespace ownership {
+class OwnerKeyUtil;
+}
+
+namespace chromeos {
+
+class FakeOwnerSettingsService : public OwnerSettingsServiceChromeOS {
+ public:
+ FakeOwnerSettingsService(
+ Profile* profile,
+ const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util);
+ ~FakeOwnerSettingsService() override;
+
+ void set_set_management_settings_result(bool success) {
+ set_management_settings_result_ = success;
+ }
+
+ const ManagementSettings& last_settings() const {
+ return last_settings_;
+ }
+
+ // OwnerSettingsServiceChromeOS:
+ void SetManagementSettings(
+ const ManagementSettings& settings,
+ const OnManagementSettingsSetCallback& callback) override;
+
+ private:
+ bool set_management_settings_result_;
+ ManagementSettings last_settings_;
+
+ DISALLOW_COPY_AND_ASSIGN(FakeOwnerSettingsService);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_FAKE_OWNER_SETTINGS_SERVICE_H_
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/ownership/fake_owner_settings_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698