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

Unified Diff: chrome/browser/policy/profile_policy_connector.h

Issue 2714493002: Load DeviceLocalAccount policy and DeviceSettings immediately on restore after Chrome crash. (Closed)
Patch Set: add flag to correctly process LoadImmediately() call 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/policy/profile_policy_connector.h
diff --git a/chrome/browser/policy/profile_policy_connector.h b/chrome/browser/policy/profile_policy_connector.h
index c42b81f6ea58aa3c21ff3cc9733ef9bbf58087bf..f0efc43959938ea0c68e4a2edd291bb4c3df7362 100644
--- a/chrome/browser/policy/profile_policy_connector.h
+++ b/chrome/browser/policy/profile_policy_connector.h
@@ -33,10 +33,13 @@ class ProfilePolicyConnector : public KeyedService {
// |user| is only used in Chrome OS builds and should be set to nullptr
// otherwise. |configuration_policy_provider| and |policy_store| are nullptr
// for non-regular users.
+ // If |force_immediate_load| is true, DeviceLocalAccountPolicy is loaded
+ // synchronously.
void Init(const user_manager::User* user,
SchemaRegistry* schema_registry,
ConfigurationPolicyProvider* configuration_policy_provider,
- const CloudPolicyStore* policy_store);
+ const CloudPolicyStore* policy_store,
+ bool force_immediate_load);
void InitForTesting(std::unique_ptr<PolicyService> service);
void OverrideIsManagedForTesting(bool is_managed);

Powered by Google App Engine
This is Rietveld 408576698