Index: chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc |
diff --git a/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc b/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc |
index 4a3d4807200f14d6944f6490da0c7f3688531b17..a4cf7b2661be97c8cc04c6ef749c5f309539161f 100644 |
--- a/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc |
+++ b/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc |
@@ -26,6 +26,7 @@ |
#include "chrome/browser/chromeos/profiles/profile_helper.h" |
#include "chrome/browser/chromeos/settings/cros_settings.h" |
#include "chrome/browser/chromeos/settings/install_attributes.h" |
+#include "chrome/browser/lifetime/application_lifetime.h" |
#include "chrome/browser/policy/schema_registry_service.h" |
#include "chrome/browser/policy/schema_registry_service_factory.h" |
#include "chrome/browser/profiles/profile.h" |
@@ -261,8 +262,9 @@ UserPolicyManagerFactoryChromeOS::CreateManagerForProfile( |
if (is_active_directory) { |
std::unique_ptr<ActiveDirectoryPolicyManager> manager = |
- ActiveDirectoryPolicyManager::CreateForUserPolicy(account_id, |
- std::move(store)); |
+ ActiveDirectoryPolicyManager::CreateForUserPolicy( |
+ account_id, wait_for_policy_fetch, initial_policy_fetch_timeout, |
+ base::BindOnce(&chrome::AttemptUserExit), std::move(store)); |
manager->Init( |
SchemaRegistryServiceFactory::GetForContext(profile)->registry()); |