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

Unified Diff: chrome/browser/policy/cloud/user_policy_signin_service_android.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_android.h
diff --git a/chrome/browser/policy/cloud/user_policy_signin_service_android.h b/chrome/browser/policy/cloud/user_policy_signin_service_android.h
index 0c5a9c4aa0ed4da960c19bc599db069b333454a6..e99058042c5e15c6bbcdb4f4a969751fb2ac8523 100644
--- a/chrome/browser/policy/cloud/user_policy_signin_service_android.h
+++ b/chrome/browser/policy/cloud/user_policy_signin_service_android.h
@@ -13,6 +13,7 @@
#include "base/memory/weak_ptr.h"
#include "chrome/browser/policy/cloud/user_policy_signin_service_base.h"
+class AndroidProfileOAuth2TokenService;
class Profile;
namespace policy {
@@ -25,7 +26,8 @@ class UserPolicySigninService : public UserPolicySigninServiceBase {
// Creates a UserPolicySigninService associated with the passed |profile|.
UserPolicySigninService(Profile* profile,
PrefService* local_state,
- DeviceManagementService* device_management_service);
+ DeviceManagementService* device_management_service,
+ AndroidProfileOAuth2TokenService* token_service);
virtual ~UserPolicySigninService();
// Registers a CloudPolicyClient for fetching policy for |username|.
@@ -57,6 +59,10 @@ class UserPolicySigninService : public UserPolicySigninServiceBase {
scoped_ptr<CloudPolicyClientRegistrationHelper> registration_helper_;
base::WeakPtrFactory<UserPolicySigninService> weak_factory_;
+ // Weak pointer to the token service used to authenticate the
+ // CloudPolicyClient during registration.
+ AndroidProfileOAuth2TokenService* oauth2_token_service_;
+
DISALLOW_COPY_AND_ASSIGN(UserPolicySigninService);
};

Powered by Google App Engine
This is Rietveld 408576698