Commit f9aa6657 authored by sczs's avatar sczs Committed by Commit Bot

[ios] Creates Reading List delete metrics.

Bug: None
Cq-Include-Trybots: luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs
Change-Id: I004609fbdc2ca0a831f363448784254a34c47809
Reviewed-on: https://chromium-review.googlesource.com/1191093Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Reviewed-by: default avatarGayane Petrosyan <gayane@chromium.org>
Commit-Queue: Sergio Collazos <sczs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#587332}
parent 153fc387
...@@ -202,6 +202,7 @@ ReadingListSelectionState GetSelectionStateForSelectedCounts( ...@@ -202,6 +202,7 @@ ReadingListSelectionState GetSelectionStateForSelectedCounts(
commitEditingStyle:(UITableViewCellEditingStyle)editingStyle commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
forRowAtIndexPath:(NSIndexPath*)indexPath { forRowAtIndexPath:(NSIndexPath*)indexPath {
DCHECK_EQ(editingStyle, UITableViewCellEditingStyleDelete); DCHECK_EQ(editingStyle, UITableViewCellEditingStyleDelete);
base::RecordAction(base::UserMetricsAction("MobileReadingListDeleteEntry"));
[self deleteItemsAtIndexPaths:@[ indexPath ]]; [self deleteItemsAtIndexPaths:@[ indexPath ]];
} }
...@@ -401,6 +402,8 @@ ReadingListSelectionState GetSelectionStateForSelectedCounts( ...@@ -401,6 +402,8 @@ ReadingListSelectionState GetSelectionStateForSelectedCounts(
} }
- (void)deleteSelectedReadingListItems { - (void)deleteSelectedReadingListItems {
base::RecordAction(
base::UserMetricsAction("MobileReadingListDeleteSelected"));
[self deleteItemsAtIndexPaths:self.tableView.indexPathsForSelectedRows]; [self deleteItemsAtIndexPaths:self.tableView.indexPathsForSelectedRows];
[self exitEditingModeAnimated:YES]; [self exitEditingModeAnimated:YES];
} }
......
...@@ -11439,6 +11439,13 @@ should be able to be added at any place in this file. ...@@ -11439,6 +11439,13 @@ should be able to be added at any place in this file.
</description> </description>
</action> </action>
<action name="MobileReadingListDeleteEntry">
<owner>gambard@chromium.org</owner>
<description>
User deleted a single entry from the ReadingList using swipe to delete.
</description>
</action>
<action name="MobileReadingListDeleteRead"> <action name="MobileReadingListDeleteRead">
<owner>gambard@chromium.org</owner> <owner>gambard@chromium.org</owner>
<description> <description>
...@@ -11447,6 +11454,13 @@ should be able to be added at any place in this file. ...@@ -11447,6 +11454,13 @@ should be able to be added at any place in this file.
</description> </description>
</action> </action>
<action name="MobileReadingListDeleteSelected">
<owner>gambard@chromium.org</owner>
<description>
User deleted the selected entries from the ReadingList.
</description>
</action>
<action name="MobileReadingListMarkRead"> <action name="MobileReadingListMarkRead">
<owner>gambard@chromium.org</owner> <owner>gambard@chromium.org</owner>
<description> <description>
......
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