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

Side by Side Diff: chrome/browser/chromeos/ownership/fake_owner_settings_service.h

Issue 814123006: Revert of Implemented consumer management unenrollment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dcpm
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_OWNERSHIP_FAKE_OWNER_SETTINGS_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_OWNERSHIP_FAKE_OWNER_SETTINGS_SERVICE_H_
7
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h"
11
12 class Profile;
13
14 namespace ownership {
15 class OwnerKeyUtil;
16 }
17
18 namespace chromeos {
19
20 class FakeOwnerSettingsService : public OwnerSettingsServiceChromeOS {
21 public:
22 FakeOwnerSettingsService(
23 Profile* profile,
24 const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util);
25 ~FakeOwnerSettingsService() override;
26
27 void set_set_management_settings_result(bool success) {
28 set_management_settings_result_ = success;
29 }
30
31 const ManagementSettings& last_settings() const {
32 return last_settings_;
33 }
34
35 // OwnerSettingsServiceChromeOS:
36 void SetManagementSettings(
37 const ManagementSettings& settings,
38 const OnManagementSettingsSetCallback& callback) override;
39
40 private:
41 bool set_management_settings_result_;
42 ManagementSettings last_settings_;
43
44 DISALLOW_COPY_AND_ASSIGN(FakeOwnerSettingsService);
45 };
46
47 } // namespace chromeos
48
49 #endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_FAKE_OWNER_SETTINGS_SERVICE_H_
OLDNEW
« 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