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

Unified Diff: chrome/browser/policy/user_policy_cache.h

Issue 7147015: Move user cloud policy to BrowserProcess (was 6979011) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit_test include breakage Created 9 years, 6 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/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);
};
« no previous file with comments | « chrome/browser/policy/profile_policy_connector_unittest.cc ('k') | chrome/browser/policy/user_policy_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698