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

Side by Side Diff: chrome/browser/chromeos/policy/consumer_management_service.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 void AddObserver(Observer* observer); 93 void AddObserver(Observer* observer);
94 void RemoveObserver(Observer* observer); 94 void RemoveObserver(Observer* observer);
95 95
96 // Returns the status. 96 // Returns the status.
97 virtual Status GetStatus() const; 97 virtual Status GetStatus() const;
98 98
99 // Returns the string value of the status. 99 // Returns the string value of the status.
100 std::string GetStatusString() const; 100 std::string GetStatusString() const;
101 101
102 // A convenient method that returns true if the status is enrolled or
bartfab (slow) 2014/11/28 13:25:17 Nit: s/convenient/convenience/
davidyu 2014/12/01 17:05:21 Done.
103 // unenrolling.
104 bool IsManaged() const;
105
102 // Returns the stage. 106 // Returns the stage.
103 virtual ConsumerManagementStage GetStage() const; 107 virtual ConsumerManagementStage GetStage() const;
104 108
105 // Sets the stage. 109 // Sets the stage.
106 virtual void SetStage(ConsumerManagementStage stage); 110 virtual void SetStage(ConsumerManagementStage stage);
107 111
108 // Returns the device owner stored in the boot lockbox via |callback|. 112 // Returns the device owner stored in the boot lockbox via |callback|.
109 void GetOwner(const GetOwnerCallback& callback); 113 void GetOwner(const GetOwnerCallback& callback);
110 114
111 // Stores the device owner user ID into the boot lockbox and signs it. 115 // Stores the device owner user ID into the boot lockbox and signs it.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 147
144 ObserverList<Observer, true> observers_; 148 ObserverList<Observer, true> observers_;
145 base::WeakPtrFactory<ConsumerManagementService> weak_ptr_factory_; 149 base::WeakPtrFactory<ConsumerManagementService> weak_ptr_factory_;
146 150
147 DISALLOW_COPY_AND_ASSIGN(ConsumerManagementService); 151 DISALLOW_COPY_AND_ASSIGN(ConsumerManagementService);
148 }; 152 };
149 153
150 } // namespace policy 154 } // namespace policy
151 155
152 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_SERVICE_H_ 156 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698