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

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

Issue 9404011: Explicitly wait for user policy before completing login. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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/browser_policy_connector.h
diff --git a/chrome/browser/policy/browser_policy_connector.h b/chrome/browser/policy/browser_policy_connector.h
index ef9848267e57ee6bc2a18c14d8836bd09f2a5707..393955a1e22769de55ba2082c18e13770bdf9ab8 100644
--- a/chrome/browser/policy/browser_policy_connector.h
+++ b/chrome/browser/policy/browser_policy_connector.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/callback_forward.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/policy/cloud_policy_constants.h"
@@ -112,8 +113,10 @@ class BrowserPolicyConnector : public content::NotificationObserver {
// If |wait_for_policy_fetch| is true, the user policy will only become fully
// initialized after a policy fetch is attempted. Note that Profile creation
// is blocked until this initialization is complete.
+ // |ready_callback|, if not null, is invoked when the user policy is ready.
Mattias Nissler (ping if slow) 2012/02/16 10:24:11 Can you give some more detail on what the actual c
void InitializeUserPolicy(const std::string& user_name,
- bool wait_for_policy_fetch);
+ bool wait_for_policy_fetch,
+ const base::Closure& ready_callback);
// Installs a token service for user policy.
void SetUserPolicyTokenService(TokenService* token_service);

Powered by Google App Engine
This is Rietveld 408576698