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

Unified Diff: chrome/browser/policy/cloud/user_policy_signin_service_base.h

Issue 23068005: Convert UserPolicySigninService to use OAuth2TokenService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT Created 7 years, 4 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/cloud/user_policy_signin_service_base.h
diff --git a/chrome/browser/policy/cloud/user_policy_signin_service_base.h b/chrome/browser/policy/cloud/user_policy_signin_service_base.h
index fc000aa99eca090c8b55cbb2ac25bea26d1fd0a0..a551c353416f20a46943bdbc87ff7d52102ad196 100644
--- a/chrome/browser/policy/cloud/user_policy_signin_service_base.h
+++ b/chrome/browser/policy/cloud/user_policy_signin_service_base.h
@@ -20,6 +20,7 @@
class PrefService;
class Profile;
+class SigninManager;
namespace policy {
@@ -116,6 +117,10 @@ class UserPolicySigninServiceBase : public BrowserContextKeyedService,
virtual void InitializeUserCloudPolicyManager(
scoped_ptr<CloudPolicyClient> client);
+ // Prepares for the UserCloudPolicyManager to be shutdown due to
+ // user signout or profile destruction.
+ virtual void PrepareForUserCloudPolicyManagerShutdown();
+
// Shuts down the UserCloudPolicyManager (for example, after the user signs
// out) and deletes any cached policy.
virtual void ShutdownUserCloudPolicyManager();
@@ -125,6 +130,7 @@ class UserPolicySigninServiceBase : public BrowserContextKeyedService,
Profile* profile() { return profile_; }
content::NotificationRegistrar* registrar() { return &registrar_; }
+ SigninManager* GetSigninManager();
private:
// Weak pointer to the profile this service is associated with.

Powered by Google App Engine
This is Rietveld 408576698