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

Side by Side Diff: chrome/browser/chromeos/settings/session_manager_operation.h

Issue 640063008: Revert of Implemented OwnerSettingsService::Set() method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SETTINGS_SESSION_MANAGER_OPERATION_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_SESSION_MANAGER_OPERATION_H_
6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_SESSION_MANAGER_OPERATION_H_ 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_SESSION_MANAGER_OPERATION_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 scoped_ptr<enterprise_management::PolicyData> new_policy); 182 scoped_ptr<enterprise_management::PolicyData> new_policy);
183 virtual ~SignAndStoreSettingsOperation(); 183 virtual ~SignAndStoreSettingsOperation();
184 184
185 // SessionManagerOperation: 185 // SessionManagerOperation:
186 virtual void Run() override; 186 virtual void Run() override;
187 187
188 private: 188 private:
189 void StartSigning(bool has_private_key); 189 void StartSigning(bool has_private_key);
190 190
191 // Stores the signed device settings blob. 191 // Stores the signed device settings blob.
192 void StoreDeviceSettings( 192 void StoreDeviceSettingsBlob(std::string device_settings_blob);
193 scoped_ptr<enterprise_management::PolicyFetchResponse> policy_response);
194 193
195 // Handles the result of the store operation and triggers the load. 194 // Handles the result of the store operation and triggers the load.
196 void HandleStoreResult(bool success); 195 void HandleStoreResult(bool success);
197 196
198 scoped_ptr<enterprise_management::PolicyData> new_policy_; 197 scoped_ptr<enterprise_management::PolicyData> new_policy_;
199 198
200 base::WeakPtrFactory<SignAndStoreSettingsOperation> weak_factory_; 199 base::WeakPtrFactory<SignAndStoreSettingsOperation> weak_factory_;
201 200
202 DISALLOW_COPY_AND_ASSIGN(SignAndStoreSettingsOperation); 201 DISALLOW_COPY_AND_ASSIGN(SignAndStoreSettingsOperation);
203 }; 202 };
204 203
205 } // namespace chromeos 204 } // namespace chromeos
206 205
207 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_SESSION_MANAGER_OPERATION_H_ 206 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_SESSION_MANAGER_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698