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

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

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 void SetEnrollmentStage(EnrollmentStage stage); 138 void SetEnrollmentStage(EnrollmentStage stage);
139 139
140 // Returns the device owner stored in the boot lockbox via |callback|. 140 // Returns the device owner stored in the boot lockbox via |callback|.
141 void GetOwner(const GetOwnerCallback& callback); 141 void GetOwner(const GetOwnerCallback& callback);
142 142
143 // Stores the device owner user ID into the boot lockbox and signs it. 143 // Stores the device owner user ID into the boot lockbox and signs it.
144 // |callback| is invoked with an agument indicating success or failure. 144 // |callback| is invoked with an agument indicating success or failure.
145 void SetOwner(const std::string& user_id, const SetOwnerCallback& callback); 145 void SetOwner(const std::string& user_id, const SetOwnerCallback& callback);
146 146
147 // chromeos::DeviceSettingsService::Observer: 147 // chromeos::DeviceSettingsService::Observer:
148 virtual void OwnershipStatusChanged() OVERRIDE; 148 virtual void OwnershipStatusChanged() override;
149 virtual void DeviceSettingsUpdated() OVERRIDE; 149 virtual void DeviceSettingsUpdated() override;
150 150
151 // content::NotificationObserver implmentation. 151 // content::NotificationObserver implmentation.
152 virtual void Observe(int type, 152 virtual void Observe(int type,
153 const content::NotificationSource& source, 153 const content::NotificationSource& source,
154 const content::NotificationDetails& details) OVERRIDE; 154 const content::NotificationDetails& details) override;
155 155
156 // OAuth2TokenService::Observer: 156 // OAuth2TokenService::Observer:
157 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE; 157 virtual void OnRefreshTokenAvailable(const std::string& account_id) override;
158 158
159 // OAuth2TokenService::Consumer: 159 // OAuth2TokenService::Consumer:
160 virtual void OnGetTokenSuccess( 160 virtual void OnGetTokenSuccess(
161 const OAuth2TokenService::Request* request, 161 const OAuth2TokenService::Request* request,
162 const std::string& access_token, 162 const std::string& access_token,
163 const base::Time& expiration_time) OVERRIDE; 163 const base::Time& expiration_time) override;
164 virtual void OnGetTokenFailure( 164 virtual void OnGetTokenFailure(
165 const OAuth2TokenService::Request* request, 165 const OAuth2TokenService::Request* request,
166 const GoogleServiceAuthError& error) OVERRIDE; 166 const GoogleServiceAuthError& error) override;
167 167
168 OAuth2TokenService::Request* GetTokenRequestForTesting() { 168 OAuth2TokenService::Request* GetTokenRequestForTesting() {
169 return token_request_.get(); 169 return token_request_.get();
170 } 170 }
171 171
172 private: 172 private:
173 void OnGetBootAttributeDone( 173 void OnGetBootAttributeDone(
174 const GetOwnerCallback& callback, 174 const GetOwnerCallback& callback,
175 chromeos::DBusMethodCallStatus call_status, 175 chromeos::DBusMethodCallStatus call_status,
176 bool dbus_success, 176 bool dbus_success,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 content::NotificationRegistrar registrar_; 228 content::NotificationRegistrar registrar_;
229 ObserverList<Observer, true> observers_; 229 ObserverList<Observer, true> observers_;
230 base::WeakPtrFactory<ConsumerManagementService> weak_ptr_factory_; 230 base::WeakPtrFactory<ConsumerManagementService> weak_ptr_factory_;
231 231
232 DISALLOW_COPY_AND_ASSIGN(ConsumerManagementService); 232 DISALLOW_COPY_AND_ASSIGN(ConsumerManagementService);
233 }; 233 };
234 234
235 } // namespace policy 235 } // namespace policy
236 236
237 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_SERVICE_H_ 237 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_MANAGEMENT_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698