Commit e437a468 authored by Miyoung Shin's avatar Miyoung Shin Committed by Commit Bot

[s13n] Migrate SigninManagerAndroid's usage of...

[s13n] Migrate SigninManagerAndroid's usage of O2TSDelegateAndroid::ValidateAccounts to IdentityManager

This CL uses IdentityManager::LegacyReloadAccountsFromSystem that
calls O2TSDelegateAndroid::ValidateAccounts internally.

Bug: 905340
Change-Id: I7fc6f18ef59a88373a68ba0dee292e344a3af65e
Reviewed-on: https://chromium-review.googlesource.com/c/1469813Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Reviewed-by: default avatarColin Blundell <blundell@chromium.org>
Commit-Queue: Miyoung Shin <myid.shin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#632437}
parent b6994e2e
......@@ -308,12 +308,8 @@ void SigninManagerAndroid::LogInSignedInUser(JNIEnv* env,
IdentityManagerFactory::GetForProfile(profile_);
// With the account consistency enabled let the account Reconcilor handles
// everything.
ProfileOAuth2TokenService* token_service =
ProfileOAuth2TokenServiceFactory::GetForProfile(profile_);
const std::string& primary_acct = identity_manager->GetPrimaryAccountId();
static_cast<OAuth2TokenServiceDelegateAndroid*>(token_service->GetDelegate())
->ValidateAccounts(primary_acct, true);
// TODO(https://crbug.com/930094): Determine the right long-term flow here.
identity_manager->LegacyReloadAccountsFromSystem();
}
jboolean SigninManagerAndroid::IsSigninAllowedByPolicy(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment