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

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

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.cc
diff --git a/chrome/browser/policy/profile_policy_connector.cc b/chrome/browser/policy/profile_policy_connector.cc
index 98414a6cd0630dd0dcb7806ecaa3643cfb33470e..a595184055a5f80411a9c776fccd7bb401a164a3 100644
--- a/chrome/browser/policy/profile_policy_connector.cc
+++ b/chrome/browser/policy/profile_policy_connector.cc
@@ -60,7 +60,8 @@ void ProfilePolicyConnector::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) {
configuration_policy_provider_ = configuration_policy_provider;
policy_store_ = policy_store;
@@ -108,7 +109,7 @@ void ProfilePolicyConnector::Init(
// the user supplied is not a device-local account user.
special_user_policy_provider_ = DeviceLocalAccountPolicyProvider::Create(
user->GetAccountId().GetUserEmail(),
- connector->GetDeviceLocalAccountPolicyService());
+ connector->GetDeviceLocalAccountPolicyService(), force_immediate_load);
}
if (special_user_policy_provider_) {
special_user_policy_provider_->Init(schema_registry);

Powered by Google App Engine
This is Rietveld 408576698