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

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: addressed Mattias' comments 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 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);
};

Powered by Google App Engine
This is Rietveld 408576698