diff --git a/components/web_discovery/browser/credential_manager.cc b/components/web_discovery/browser/credential_manager.cc index 7165a55dd507..792f809f08d3 100644 --- a/components/web_discovery/browser/credential_manager.cc +++ b/components/web_discovery/browser/credential_manager.cc @@ -104,7 +104,7 @@ void CredentialManager::OnNewRSAKey(std::unique_ptr key_info) { } rsa_public_key_b64_ = key_info->public_key_b64; - CHECK(key_info->key_pair && key_info->private_key_b64); + CHECK(key_info->private_key_b64); profile_prefs_->SetString(kCredentialRSAPrivateKey, *key_info->private_key_b64);