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

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

Issue 654263003: Implemented OwnerSettingsService::Set() method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed crashes under asan. Created 6 years, 1 month 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // Returns the device owner stored in the boot lockbox via |callback|. 136 // Returns the device owner stored in the boot lockbox via |callback|.
137 void GetOwner(const GetOwnerCallback& callback); 137 void GetOwner(const GetOwnerCallback& callback);
138 138
139 // Stores the device owner user ID into the boot lockbox and signs it. 139 // Stores the device owner user ID into the boot lockbox and signs it.
140 // |callback| is invoked with an agument indicating success or failure. 140 // |callback| is invoked with an agument indicating success or failure.
141 void SetOwner(const std::string& user_id, const SetOwnerCallback& callback); 141 void SetOwner(const std::string& user_id, const SetOwnerCallback& callback);
142 142
143 // chromeos::DeviceSettingsService::Observer: 143 // chromeos::DeviceSettingsService::Observer:
144 virtual void OwnershipStatusChanged() override; 144 virtual void OwnershipStatusChanged() override;
145 virtual void DeviceSettingsUpdated() override; 145 virtual void DeviceSettingsUpdated() override;
146 virtual void OnDeviceSettingsServiceShutdown() override;
146 147
147 private: 148 private:
148 void OnGetBootAttributeDone( 149 void OnGetBootAttributeDone(
149 const GetOwnerCallback& callback, 150 const GetOwnerCallback& callback,
150 chromeos::DBusMethodCallStatus call_status, 151 chromeos::DBusMethodCallStatus call_status,
151 bool dbus_success, 152 bool dbus_success,
152 const cryptohome::BaseReply& reply); 153 const cryptohome::BaseReply& reply);
153 154
154 void OnSetBootAttributeDone(const SetOwnerCallback& callback, 155 void OnSetBootAttributeDone(const SetOwnerCallback& callback,
155 chromeos::DBusMethodCallStatus call_status, 156 chromeos::DBusMethodCallStatus call_status,
(...skipping 13 matching lines...) Expand all
169 170
170 ObserverList<Observer, true> observers_; 171 ObserverList<Observer, true> observers_;
171 base::WeakPtrFactory<ConsumerManagementService> weak_ptr_factory_; 172 base::WeakPtrFactory<ConsumerManagementService> weak_ptr_factory_;
172 173
173 DISALLOW_COPY_AND_ASSIGN(ConsumerManagementService); 174 DISALLOW_COPY_AND_ASSIGN(ConsumerManagementService);
174 }; 175 };
175 176
176 } // namespace policy 177 } // namespace policy
177 178
178 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_SERVICE_H_ 179 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698