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 307530ccd0044736121e940ccb2a105e5aebc80f..0a1d725885f289b1414de3f7b323377562544586 100644 |
--- a/chrome/browser/policy/user_policy_cache.h |
+++ b/chrome/browser/policy/user_policy_cache.h |
@@ -37,6 +37,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; |
@@ -73,6 +74,10 @@ class UserPolicyCache : public CloudPolicyCacheBase, |
// Used for constructing the weak ptr passed to |disk_cache_|. |
base::WeakPtrFactory<UserPolicyDiskCache::Delegate> 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); |
}; |