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

Unified Diff: chrome/browser/chromeos/policy/device_local_account_policy_provider.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/policy/device_local_account_policy_provider.h
diff --git a/chrome/browser/chromeos/policy/device_local_account_policy_provider.h b/chrome/browser/chromeos/policy/device_local_account_policy_provider.h
index 2f12cbfa77261c9944fa98c26cc0c8db5e14797c..c50c1facba0735591a8c81767ecdbedf894f7ade 100644
--- a/chrome/browser/chromeos/policy/device_local_account_policy_provider.h
+++ b/chrome/browser/chromeos/policy/device_local_account_policy_provider.h
@@ -39,9 +39,12 @@ class DeviceLocalAccountPolicyProvider
// Factory function to create and initialize a provider for |user_id|. Returns
// NULL if |user_id| is not a device-local account or user policy isn't
// applicable for user_id's user type.
+ // If |force_immediate_load| is true then policy is loaded synchronously on
+ // creation.
static std::unique_ptr<DeviceLocalAccountPolicyProvider> Create(
const std::string& user_id,
- DeviceLocalAccountPolicyService* service);
+ DeviceLocalAccountPolicyService* service,
+ bool force_immediate_load);
// ConfigurationPolicyProvider:
bool IsInitializationComplete(PolicyDomain domain) const override;

Powered by Google App Engine
This is Rietveld 408576698