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

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

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 virtual ConsumerManagementStage GetStage() const; 103 virtual ConsumerManagementStage GetStage() const;
104 104
105 // Sets the stage. 105 // Sets the stage.
106 virtual void SetStage(const ConsumerManagementStage& stage); 106 virtual void SetStage(const ConsumerManagementStage& stage);
107 107
108 // Returns the device owner stored in the boot lockbox via |callback|. 108 // Returns the device owner stored in the boot lockbox via |callback|.
109 void GetOwner(const GetOwnerCallback& callback); 109 void GetOwner(const GetOwnerCallback& callback);
110 110
111 // Stores the device owner user ID into the boot lockbox and signs it. 111 // Stores the device owner user ID into the boot lockbox and signs it.
112 // |callback| is invoked with an agument indicating success or failure. 112 // |callback| is invoked with an agument indicating success or failure.
113 void SetOwner(const std::string& user_id, const SetOwnerCallback& callback); 113 void SetOwner(const user_manager::UserID& user_id, const SetOwnerCallback& cal lback);
114 114
115 // chromeos::DeviceSettingsService::Observer: 115 // chromeos::DeviceSettingsService::Observer:
116 void OwnershipStatusChanged() override; 116 void OwnershipStatusChanged() override;
117 void DeviceSettingsUpdated() override; 117 void DeviceSettingsUpdated() override;
118 void OnDeviceSettingsServiceShutdown() override; 118 void OnDeviceSettingsServiceShutdown() override;
119 119
120 protected: 120 protected:
121 void NotifyStatusChanged(); 121 void NotifyStatusChanged();
122 122
123 private: 123 private:
(...skipping 19 matching lines...) Expand all
143 143
144 ObserverList<Observer, true> observers_; 144 ObserverList<Observer, true> observers_;
145 base::WeakPtrFactory<ConsumerManagementService> weak_ptr_factory_; 145 base::WeakPtrFactory<ConsumerManagementService> weak_ptr_factory_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(ConsumerManagementService); 147 DISALLOW_COPY_AND_ASSIGN(ConsumerManagementService);
148 }; 148 };
149 149
150 } // namespace policy 150 } // namespace policy
151 151
152 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_SERVICE_H_ 152 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698