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

Unified Diff: chrome/browser/android/signin/signin_manager_android.cc

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
« no previous file with comments | « no previous file | chrome/browser/policy/cloud/user_policy_signin_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/signin/signin_manager_android.cc
diff --git a/chrome/browser/android/signin/signin_manager_android.cc b/chrome/browser/android/signin/signin_manager_android.cc
index a42225df207c7b29e38fff907eba09a2d82a4ee5..5fd3e001cc51c289baf8c77a7497469d1bb1f1e7 100644
--- a/chrome/browser/android/signin/signin_manager_android.cc
+++ b/chrome/browser/android/signin/signin_manager_android.cc
@@ -115,10 +115,11 @@ void SigninManagerAndroid::CheckPolicyBeforeSignIn(
username_ = base::android::ConvertJavaStringToUTF8(env, username);
policy::UserPolicySigninService* service =
policy::UserPolicySigninServiceFactory::GetForProfile(profile_);
- service->RegisterForPolicy(
- username_, AccountTrackerServiceFactory::GetForProfile(profile_)
- ->FindAccountInfoByEmail(username_)
- .account_id,
+ service->RegisterForPolicyWithAccountId(
+ username_,
+ AccountTrackerServiceFactory::GetForProfile(profile_)
+ ->FindAccountInfoByEmail(username_)
+ .account_id,
base::Bind(&SigninManagerAndroid::OnPolicyRegisterDone,
weak_factory_.GetWeakPtr()));
}
@@ -341,10 +342,11 @@ static void IsUserManaged(
base::android::ConvertJavaStringToUTF8(env, j_username);
policy::UserPolicySigninService* service =
policy::UserPolicySigninServiceFactory::GetForProfile(profile);
- service->RegisterForPolicy(
- username, AccountTrackerServiceFactory::GetForProfile(profile)
- ->FindAccountInfoByEmail(username)
- .account_id,
+ service->RegisterForPolicyWithAccountId(
+ username,
+ AccountTrackerServiceFactory::GetForProfile(profile)
+ ->FindAccountInfoByEmail(username)
+ .account_id,
base::Bind(&UserManagementDomainFetched, callback));
}
« no previous file with comments | « no previous file | chrome/browser/policy/cloud/user_policy_signin_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698