Commit c1550869 authored by Nohemi Fernandez's avatar Nohemi Fernandez Committed by Commit Bot

[iOS] Remove references to flag kClearSyncedData.

Feature ClearSyncedData has been enabled by default. Clean up code.

Bug: 1005509
Change-Id: I8eaea684e754afda13bcde2134e4fa5e2434c9ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2260193
Commit-Queue: Nohemi Fernandez <fernandex@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Auto-Submit: Nohemi Fernandez <fernandex@chromium.org>
Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#781276}
parent 059e7e86
...@@ -234,7 +234,6 @@ typedef NS_ENUM(NSInteger, ItemType) { ...@@ -234,7 +234,6 @@ typedef NS_ENUM(NSInteger, ItemType) {
toSectionWithIdentifier:SectionIdentifierAccounts]; toSectionWithIdentifier:SectionIdentifierAccounts];
// Sign out section. // Sign out section.
if (base::FeatureList::IsEnabled(kClearSyncedData)) {
[model addSectionWithIdentifier:SectionIdentifierSignOut]; [model addSectionWithIdentifier:SectionIdentifierSignOut];
// Adds a signout option if the account is not managed. // Adds a signout option if the account is not managed.
if (![self authService]->IsAuthenticatedIdentityManaged()) { if (![self authService]->IsAuthenticatedIdentityManaged()) {
...@@ -254,11 +253,6 @@ typedef NS_ENUM(NSInteger, ItemType) { ...@@ -254,11 +253,6 @@ typedef NS_ENUM(NSInteger, ItemType) {
[model setFooter:[self signOutNonManagedAccountFooterItem] [model setFooter:[self signOutNonManagedAccountFooterItem]
forSectionWithIdentifier:SectionIdentifierSignOut]; forSectionWithIdentifier:SectionIdentifierSignOut];
} }
} else {
[model addSectionWithIdentifier:SectionIdentifierSignOut];
[model addItem:[self signOutItem]
toSectionWithIdentifier:SectionIdentifierSignOut];
}
} }
#pragma mark - Model objects #pragma mark - Model objects
...@@ -370,13 +364,9 @@ typedef NS_ENUM(NSInteger, ItemType) { ...@@ -370,13 +364,9 @@ typedef NS_ENUM(NSInteger, ItemType) {
break; break;
} }
case ItemTypeSignOut: { case ItemTypeSignOut: {
if (base::FeatureList::IsEnabled(kClearSyncedData)) {
UIView* itemView = UIView* itemView =
[[tableView cellForRowAtIndexPath:indexPath] contentView]; [[tableView cellForRowAtIndexPath:indexPath] contentView];
[self showSignOutWithClearData:NO itemView:itemView]; [self showSignOutWithClearData:NO itemView:itemView];
} else {
[self showSignOut];
}
break; break;
} }
case ItemTypeSignOutAndClearData: { case ItemTypeSignOutAndClearData: {
...@@ -598,10 +588,9 @@ typedef NS_ENUM(NSInteger, ItemType) { ...@@ -598,10 +588,9 @@ typedef NS_ENUM(NSInteger, ItemType) {
self.navigationController) self.navigationController)
popViewControllerOrCloseSettingsAnimated:YES]; popViewControllerOrCloseSettingsAnimated:YES];
}); });
// Get UMA metrics on the usage of the new UI, which is only available for // Get UMA metrics on the usage of different options for signout available
// users in the experiement with non-managed accounts. // for users with non-managed accounts.
if (base::FeatureList::IsEnabled(kClearSyncedData) && if (![self authService]->IsAuthenticatedIdentityManaged()) {
![self authService]->IsAuthenticatedIdentityManaged()) {
UMA_HISTOGRAM_BOOLEAN("Signin.UserRequestedWipeDataOnSignout", UMA_HISTOGRAM_BOOLEAN("Signin.UserRequestedWipeDataOnSignout",
forceClearData); forceClearData);
} }
......
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