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

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

Issue 1256283002: GAIA ID migration for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 3 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_mobile.h
diff --git a/chrome/browser/policy/cloud/user_policy_signin_service_mobile.h b/chrome/browser/policy/cloud/user_policy_signin_service_mobile.h
index 96592864853c4432e955fc51a4848a42206f63fa..56d6958ab8c1b3aaa9888aa3b9f4e684330ac2ee 100644
--- a/chrome/browser/policy/cloud/user_policy_signin_service_mobile.h
+++ b/chrome/browser/policy/cloud/user_policy_signin_service_mobile.h
@@ -44,9 +44,12 @@ class UserPolicySigninService : public UserPolicySigninServiceBase {
// Registers a CloudPolicyClient for fetching policy for |username|.
// This requests an OAuth2 token for the services involved, and contacts
// the policy service if the account has management enabled.
+ // |account_id| is the obfuscated identitifcation of |username| to get OAuth2
+ // token services.
// |callback| is invoked once we have registered this device to fetch policy,
// or once it is determined that |username| is not a managed account.
void RegisterForPolicy(const std::string& username,
+ const std::string& account_id,
const PolicyRegistrationCallback& callback);
#if !defined(OS_ANDROID)
@@ -65,10 +68,10 @@ class UserPolicySigninService : public UserPolicySigninServiceBase {
#endif
private:
- void RegisterForPolicyInternal(
- const std::string& username,
- const std::string& access_token,
- const PolicyRegistrationCallback& callback);
+ void RegisterForPolicyInternal(const std::string& username,
+ const std::string& account_id,
+ const std::string& access_token,
+ const PolicyRegistrationCallback& callback);
void CallPolicyRegistrationCallback(scoped_ptr<CloudPolicyClient> client,
PolicyRegistrationCallback callback);

Powered by Google App Engine
This is Rietveld 408576698