Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Unified Diff: ios/chrome/browser/ui/history/history_panel_view_controller.mm

Issue 2592843002: [ios] Adds history user action metrics (Closed)
Patch Set: Rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/ui/history/history_collection_view_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/history/history_panel_view_controller.mm
diff --git a/ios/chrome/browser/ui/history/history_panel_view_controller.mm b/ios/chrome/browser/ui/history/history_panel_view_controller.mm
index 231770fe167bcf1ed97e0bced7e263b3adf3384f..70fb0a6c71e5232cc9b94b55fc8828bb4990d832 100644
--- a/ios/chrome/browser/ui/history/history_panel_view_controller.mm
+++ b/ios/chrome/browser/ui/history/history_panel_view_controller.mm
@@ -8,6 +8,8 @@
#include "base/ios/ios_util.h"
#include "base/ios/weak_nsobject.h"
#include "base/mac/scoped_nsobject.h"
+#include "base/metrics/user_metrics.h"
+#include "base/metrics/user_metrics_action.h"
#include "components/strings/grit/components_strings.h"
#import "ios/chrome/browser/ui/history/clear_browsing_bar.h"
#import "ios/chrome/browser/ui/history/history_collection_view_controller.h"
@@ -307,6 +309,8 @@ CGFloat kShadowOpacity = 0.2f;
- (void)openPrivacySettings {
[self exitSearchMode];
+ base::RecordAction(
+ base::UserMetricsAction("HistoryPage_InitClearBrowsingData"));
ShowClearBrowsingData();
}
@@ -332,6 +336,7 @@ CGFloat kShadowOpacity = 0.2f;
- (void)deleteSelectedItems {
[_historyCollectionController deleteSelectedItemsFromHistory];
+ base::RecordAction(base::UserMetricsAction("HistoryPage_RemoveSelected"));
[self exitEditingMode];
}
- (void)enterSearchMode {
@@ -345,6 +350,7 @@ CGFloat kShadowOpacity = 0.2f;
[self.view addSubview:searchBarView];
_historyCollectionController.get().searching = YES;
[_searchViewController didMoveToParentViewController:self];
+ base::RecordAction(base::UserMetricsAction("HistoryPage_Search"));
// Constraints to make search bar cover header.
[searchBarView setTranslatesAutoresizingMaskIntoConstraints:NO];
« no previous file with comments | « ios/chrome/browser/ui/history/history_collection_view_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698