Index: components/signin/ios/browser/profile_oauth2_token_service_ios.mm |
diff --git a/components/signin/ios/browser/profile_oauth2_token_service_ios.mm b/components/signin/ios/browser/profile_oauth2_token_service_ios.mm |
index b17a70108b63d1448249f3fea5a5225cd41fedf2..fb184f8c0b0fd3c9d79e63d297e461d717557990 100644 |
--- a/components/signin/ios/browser/profile_oauth2_token_service_ios.mm |
+++ b/components/signin/ios/browser/profile_oauth2_token_service_ios.mm |
@@ -453,6 +453,7 @@ void ProfileOAuth2TokenServiceIOS::AddOrUpdateAccount( |
const std::string& account_id) { |
DCHECK(thread_checker_.CalledOnValidThread()); |
DCHECK(!account_id.empty()); |
+ DCHECK(!use_legacy_token_service_); |
bool account_present = accounts_.count(account_id) > 0; |
if (account_present && accounts_[account_id]->GetAuthStatus().state() == |
@@ -476,6 +477,7 @@ void ProfileOAuth2TokenServiceIOS::RemoveAccount( |
const std::string& account_id) { |
DCHECK(thread_checker_.CalledOnValidThread()); |
DCHECK(!account_id.empty()); |
+ DCHECK(!use_legacy_token_service_); |
if (accounts_.count(account_id) > 0) { |
CancelRequestsForAccount(account_id); |