Commit 166bb94f authored by Tanmoy Mollik's avatar Tanmoy Mollik Committed by Commit Bot

[Android] Rename kMiceFeature to kMobileIdentityConsistency

This CL removes some remaining usages of kMiceFeature and renames the
feature object to kMobileIdentityConsistency to reduce confusion.

Bug: 1046385, 1048635
Change-Id: Ia0fd886c9a458060b5794f9a53fcd7c3dbba9236
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2033518Reviewed-by: default avatarBoris Sazonov <bsazonov@chromium.org>
Reviewed-by: default avatarDavid Roger <droger@chromium.org>
Commit-Queue: David Roger <droger@chromium.org>
Auto-Submit: Tanmoy Mollik <triploblastic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738904}
parent 1f4b25a2
...@@ -4072,7 +4072,7 @@ const FeatureEntry kFeatureEntries[] = { ...@@ -4072,7 +4072,7 @@ const FeatureEntry kFeatureEntries[] = {
{"mobile-identity-consistency", {"mobile-identity-consistency",
flag_descriptions::kMobileIdentityConsistencyName, flag_descriptions::kMobileIdentityConsistencyName,
flag_descriptions::kMobileIdentityConsistencyDescription, kOsAndroid, flag_descriptions::kMobileIdentityConsistencyDescription, kOsAndroid,
FEATURE_VALUE_TYPE(signin::kMiceFeature)}, FEATURE_VALUE_TYPE(signin::kMobileIdentityConsistency)},
#endif // defined(OS_ANDROID) #endif // defined(OS_ANDROID)
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
......
...@@ -244,7 +244,7 @@ const base::Feature* kFeaturesExposedToJava[] = { ...@@ -244,7 +244,7 @@ const base::Feature* kFeaturesExposedToJava[] = {
&password_manager::features::kPasswordManagerOnboardingAndroid, &password_manager::features::kPasswordManagerOnboardingAndroid,
&safe_browsing::kCaptureSafetyNetId, &safe_browsing::kCaptureSafetyNetId,
&security_state::features::kMarkHttpAsFeature, &security_state::features::kMarkHttpAsFeature,
&signin::kMiceFeature, &signin::kMobileIdentityConsistency,
&switches::kSyncErrorInfoBarAndroid, &switches::kSyncErrorInfoBarAndroid,
&switches::kSyncUseSessionsUnregisterDelay, &switches::kSyncUseSessionsUnregisterDelay,
&subresource_filter::kSafeBrowsingSubresourceFilter, &subresource_filter::kSafeBrowsingSubresourceFilter,
......
...@@ -413,8 +413,7 @@ bool ProfileOAuth2TokenServiceDelegateAndroid::UpdateAccountList( ...@@ -413,8 +413,7 @@ bool ProfileOAuth2TokenServiceDelegateAndroid::UpdateAccountList(
std::vector<CoreAccountId>* refreshed_ids, std::vector<CoreAccountId>* refreshed_ids,
std::vector<CoreAccountId>* revoked_ids) { std::vector<CoreAccountId>* revoked_ids) {
bool keep_accounts = bool keep_accounts =
base::FeatureList::IsEnabled(signin::kMiceFeature) || signed_in_id.has_value() && base::Contains(curr_ids, *signed_in_id);
(signed_in_id.has_value() && base::Contains(curr_ids, *signed_in_id));
if (keep_accounts) { if (keep_accounts) {
// Revoke token for ids that have been removed from the device. // Revoke token for ids that have been removed from the device.
for (const CoreAccountId& prev_id : prev_ids) { for (const CoreAccountId& prev_id : prev_ids) {
...@@ -488,8 +487,7 @@ void ProfileOAuth2TokenServiceDelegateAndroid::LoadCredentials( ...@@ -488,8 +487,7 @@ void ProfileOAuth2TokenServiceDelegateAndroid::LoadCredentials(
load_credentials_state()); load_credentials_state());
set_load_credentials_state( set_load_credentials_state(
signin::LoadCredentialsState::LOAD_CREDENTIALS_IN_PROGRESS); signin::LoadCredentialsState::LOAD_CREDENTIALS_IN_PROGRESS);
if (primary_account_id.empty() && if (primary_account_id.empty()) {
!base::FeatureList::IsEnabled(signin::kMiceFeature)) {
FireRefreshTokensLoaded(); FireRefreshTokensLoaded();
return; return;
} }
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
namespace signin { namespace signin {
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
const base::Feature kMiceFeature{"MobileIdentityConsistency", const base::Feature kMobileIdentityConsistency{
base::FEATURE_DISABLED_BY_DEFAULT}; "MobileIdentityConsistency", base::FEATURE_DISABLED_BY_DEFAULT};
#endif #endif
} // namespace signin } // namespace signin
...@@ -17,7 +17,7 @@ namespace signin { ...@@ -17,7 +17,7 @@ namespace signin {
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
// Mice is similar to Mirror but also works when the user is not opted into // Mice is similar to Mirror but also works when the user is not opted into
// Sync. // Sync.
extern const base::Feature kMiceFeature; extern const base::Feature kMobileIdentityConsistency;
#endif #endif
enum class AccountConsistencyMethod : int { enum class AccountConsistencyMethod : int {
......
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