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

Unified Diff: chrome/browser/chromeos/ownership/fake_owner_settings_service.cc

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/fake_owner_settings_service.cc
diff --git a/chrome/browser/chromeos/ownership/fake_owner_settings_service.cc b/chrome/browser/chromeos/ownership/fake_owner_settings_service.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b5154475280f7b0328750b6e66fc64ebe8e09a1b
--- /dev/null
+++ b/chrome/browser/chromeos/ownership/fake_owner_settings_service.cc
@@ -0,0 +1,26 @@
+// 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.
+
+#include "chrome/browser/chromeos/ownership/fake_owner_settings_service.h"
+
+namespace chromeos {
+
+FakeOwnerSettingsService::FakeOwnerSettingsService(
+ Profile* profile,
+ const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util)
+ : OwnerSettingsServiceChromeOS(nullptr, profile, owner_key_util),
+ set_management_settings_result_(true) {
+}
+
+FakeOwnerSettingsService::~FakeOwnerSettingsService() {
+}
+
+void FakeOwnerSettingsService::SetManagementSettings(
+ const ManagementSettings& settings,
+ const OnManagementSettingsSetCallback& callback) {
+ last_settings_ = settings;
+ callback.Run(set_management_settings_result_);
+}
+
+} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698