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

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: 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/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..a6a308c1b0a0d175cae9970455d5754be0dd2d81
--- /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(NULL, profile, owner_key_util),
ygorshenin1 2015/01/12 10:08:55 nit: could you please replace NULL by nullptr?
davidyu 2015/01/13 05:43:52 Done.
+ 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