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

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

Issue 2953253002: [DICE] Enable sync for an account that is already present in the token service. (Closed)
Patch Set: Address code review Created 3 years, 5 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.h
diff --git a/chrome/browser/policy/cloud/user_policy_signin_service.h b/chrome/browser/policy/cloud/user_policy_signin_service.h
index 65d94865b287a8b6a2ec53be92d87dfadd4bfcbb..7cd0009826a0be9227f587c8af6d5e3458e9b713 100644
--- a/chrome/browser/policy/cloud/user_policy_signin_service.h
+++ b/chrome/browser/policy/cloud/user_policy_signin_service.h
@@ -47,9 +47,18 @@ class UserPolicySigninService : public UserPolicySigninServiceBase,
// the user is not signed in yet (ProfileOAuth2TokenService does not have
// any tokens yet to prevent services from using it until after we've fetched
// policy).
- void RegisterForPolicy(const std::string& username,
- const std::string& oauth2_login_token,
- const PolicyRegistrationCallback& callback);
+ void RegisterForPolicyWithLoginToken(
+ const std::string& username,
+ const std::string& oauth2_login_token,
+ const PolicyRegistrationCallback& callback);
+
+ // Registers a CloudPolicyClient for fetching policy for a user. |username| is
+ // explicitly passed because the user is not yet authenticated, but the token
+ // service has a refresh token available for |account_id|.
+ void RegisterForPolicyWithAccountId(
+ const std::string& username,
+ const std::string& account_id,
+ const PolicyRegistrationCallback& callback);
// OAuth2TokenService::Observer implementation:
void OnRefreshTokenAvailable(const std::string& account_id) override;
« no previous file with comments | « chrome/browser/android/signin/signin_manager_android.cc ('k') | chrome/browser/policy/cloud/user_policy_signin_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698