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

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

Issue 8499021: UserPolicyCache only becomes ready after policy has been fetched. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Actually waits now, rebased Created 9 years, 1 month 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/browser_policy_connector.h
diff --git a/chrome/browser/policy/browser_policy_connector.h b/chrome/browser/policy/browser_policy_connector.h
index da746b58ef0766056e04366abdba1f341010d0f8..c59454af90c73b1022ff66abfc2d05d8f1d06647 100644
--- a/chrome/browser/policy/browser_policy_connector.h
+++ b/chrome/browser/policy/browser_policy_connector.h
@@ -98,13 +98,17 @@ class BrowserPolicyConnector : public content::NotificationObserver {
void ScheduleServiceInitialization(int64 delay_milliseconds);
// Initializes the user cloud policy infrastructure.
- void InitializeUserPolicy(const std::string& user_name);
+ // Returns true if initialization of the user cloud policy will block Profile
+ // creation until a user policy fetch is performed.
Mattias Nissler (ping if slow) 2011/11/11 11:41:23 This return value is easy to miss and the results
Joao da Silva 2011/11/11 12:55:14 Done, in a slightly different form. The decision i
+ bool InitializeUserPolicy(const std::string& user_name);
// Installs a token service for user policy.
void SetUserPolicyTokenService(TokenService* token_service);
// Registers for user policy (if not already registered), using the passed
- // OAuth V2 token for authentication.
+ // OAuth V2 token for authentication. |oauth_token| can be empty to signal
+ // that an attempt to fetch the token was made but failed, or that oauth
+ // isn't being used.
void RegisterForUserPolicy(const std::string& oauth_token);
const CloudPolicyDataStore* GetDeviceCloudPolicyDataStore() const;

Powered by Google App Engine
This is Rietveld 408576698