| Index: chrome/browser/policy/user_policy_cache.h
|
| diff --git a/chrome/browser/policy/user_policy_cache.h b/chrome/browser/policy/user_policy_cache.h
|
| index 45eb3d05e9d762c9fc9bd5a049a7b9f741e31c8d..50a17b1b3b163bf2d1f7eb7e2a2c67002839fd13 100644
|
| --- a/chrome/browser/policy/user_policy_cache.h
|
| +++ b/chrome/browser/policy/user_policy_cache.h
|
| @@ -33,6 +33,7 @@ class UserPolicyCache : public CloudPolicyCacheBase {
|
| virtual void Load() OVERRIDE;
|
| virtual void SetPolicy(const em::PolicyFetchResponse& policy) OVERRIDE;
|
| virtual void SetUnmanaged() OVERRIDE;
|
| + virtual bool IsReady() OVERRIDE;
|
|
|
| private:
|
| class DiskCache;
|
| @@ -68,6 +69,10 @@ class UserPolicyCache : public CloudPolicyCacheBase {
|
| // Used for constructing the weak ptr passed to |disk_cache_|.
|
| base::WeakPtrFactory<UserPolicyCache> weak_ptr_factory_;
|
|
|
| + // Starts as false, set to true when the first request for policies from
|
| + // disk is returned.
|
| + bool first_load_complete_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(UserPolicyCache);
|
| };
|
|
|
|
|