| Index: chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h
|
| diff --git a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h
|
| index a0eb497b683cfd3623764f1ab48001585759a87e..c19588d67b8099ddd9507e6c1403ef2f04ea832a 100644
|
| --- a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h
|
| +++ b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h
|
| @@ -132,8 +132,10 @@ class UserCloudPolicyManagerChromeOS : public CloudPolicyManager,
|
|
|
| // Cancels waiting for the policy fetch and flags the
|
| // ConfigurationPolicyProvider ready (assuming all other initialization tasks
|
| - // have completed).
|
| - void CancelWaitForPolicyFetch();
|
| + // have completed). Pass |true| if policy fetch was successful (either
|
| + // because policy was successfully fetched, or if DMServer has notified us
|
| + // that the user is not managed).
|
| + void CancelWaitForPolicyFetch(bool success);
|
|
|
| void StartRefreshSchedulerIfReady();
|
|
|
| @@ -153,6 +155,11 @@ class UserCloudPolicyManagerChromeOS : public CloudPolicyManager,
|
| // IsInitializationComplete().
|
| bool wait_for_policy_fetch_;
|
|
|
| + // Whether we should allow policy fetches to fail, or wait forever until they
|
| + // succeed (typically we won't allow them to fail until we have loaded policy
|
| + // at least once).
|
| + bool allow_failed_policy_fetches_;
|
| +
|
| // A timer that puts a hard limit on the maximum time to wait for the initial
|
| // policy fetch.
|
| base::Timer policy_fetch_timeout_;
|
|
|