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

Unified Diff: chrome/browser/chromeos/settings/device_settings_service.h

Issue 2714493002: Load DeviceLocalAccount policy and DeviceSettings immediately on restore after Chrome crash. (Closed)
Patch Set: wrap Validator in unique_ptr Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/settings/device_settings_service.h
diff --git a/chrome/browser/chromeos/settings/device_settings_service.h b/chrome/browser/chromeos/settings/device_settings_service.h
index 8a7e68bbc93136a21cb4c0cfdacfa695b54e113f..efb3d027568350eedc3d8b0e8bb4d0dc043a947f 100644
--- a/chrome/browser/chromeos/settings/device_settings_service.h
+++ b/chrome/browser/chromeos/settings/device_settings_service.h
@@ -132,6 +132,9 @@ class DeviceSettingsService : public SessionManagerClient::Observer {
// load the device settings.
void Load();
+ // Synchronously pulls the public key and loads the device settings.
+ void LoadImmediately();
+
// Stores a policy blob to session_manager. The result of the operation is
// reported through |callback|. If successful, the updated device settings are
// present in policy_data() and device_settings() when the callback runs.
@@ -196,11 +199,16 @@ class DeviceSettingsService : public SessionManagerClient::Observer {
void StartNextOperation();
// Updates status, policy data and owner key from a finished operation.
- // Starts the next pending operation if available.
void HandleCompletedOperation(const base::Closure& callback,
SessionManagerOperation* operation,
Status status);
+ // Same as HandleCompletedOperation(), but also starts the next pending
+ // operation if available.
+ void HandleCompletedAsyncOperation(const base::Closure& callback,
+ SessionManagerOperation* operation,
+ Status status);
+
// Updates status and invokes the callback immediately.
void HandleError(Status status, const base::Closure& callback);

Powered by Google App Engine
This is Rietveld 408576698