Commit bf7381e7 authored by David Roger's avatar David Roger Committed by Commit Bot

[signin][Mice] Do not call FireRefreshTokensLoaded too early

This was causing a crash on startup if an account was removed from the
device while Chrome was not running.

Bug: 936953
Change-Id: I45662ace9c498b6db8b719251e8f7f461dc5531f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1505447Reviewed-by: default avatarBoris Sazonov <bsazonov@chromium.org>
Commit-Queue: David Roger <droger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#638656}
parent b669b5c7
......@@ -485,7 +485,8 @@ void OAuth2TokenServiceDelegateAndroid::LoadCredentials(
const std::string& primary_account_id) {
DCHECK_EQ(LOAD_CREDENTIALS_NOT_STARTED, load_credentials_state());
set_load_credentials_state(LOAD_CREDENTIALS_IN_PROGRESS);
if (primary_account_id.empty()) {
if (primary_account_id.empty() &&
!base::FeatureList::IsEnabled(signin::kMiceFeature)) {
FireRefreshTokensLoaded();
return;
}
......
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