Commit c781b244 authored by Ewann's avatar Ewann Committed by Commit Bot

[iOS] Adds customSepartor to Settings

This CL enables customSeparator in Settings if the SettingsRefresh
flag is enable.

Bug: 922511
Change-Id: I119e37403c4161301e35982bb5733cee0497263c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2461327
Commit-Queue: Ewann Pellé <ewannpv@chromium.org>
Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#815622}
parent 09d705cc
......@@ -198,6 +198,18 @@ const CGFloat kActivityIndicatorDimensionIPhone = 56;
return kDefaultHeaderFooterHeight;
}
#pragma mark - UITableViewDataSource
- (UITableViewCell*)tableView:(UITableView*)tableView
cellForRowAtIndexPath:(NSIndexPath*)indexPath {
if (base::FeatureList::IsEnabled(kSettingsRefresh)) {
TableViewItem* item = [self.tableViewModel itemAtIndexPath:indexPath];
item.useCustomSeparator = YES;
}
return [super tableView:tableView cellForRowAtIndexPath:indexPath];
}
#pragma mark - TableViewLinkHeaderFooterItemDelegate
- (void)view:(TableViewLinkHeaderFooterView*)view didTapLinkURL:(GURL)URL {
......
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