diff --git a/content/browser/android/overscroll_controller_android.cc b/content/browser/android/overscroll_controller_android.cc index 0f161d8fdd9d..c6c41531d4e9 100644 --- a/content/browser/android/overscroll_controller_android.cc +++ b/content/browser/android/overscroll_controller_android.cc @@ -13,6 +13,7 @@ #include "content/browser/web_contents/web_contents_impl.h" #include "content/common/input/did_overscroll_params.h" #include "content/public/browser/navigation_controller.h" +#include "content/public/browser/user_metrics.h" #include "content/public/common/content_switches.h" #include "third_party/WebKit/public/web/WebInputEvent.h" #include "ui/android/resources/resource_manager.h" @@ -277,6 +278,7 @@ void OverscrollControllerAndroid::TriggerRefresh() { return; triggered_refresh_active_ = true; + RecordAction(base::UserMetricsAction("MobilePullGestureReload")); web_contents()->GetController().Reload(true); } diff --git a/tools/metrics/actions/actions.xml b/tools/metrics/actions/actions.xml index 04db2d0bf66a..7118afa0ce7f 100644 --- a/tools/metrics/actions/actions.xml +++ b/tools/metrics/actions/actions.xml @@ -7575,6 +7575,15 @@ should be able to be added at any place in this file. User closes the tab while preview page is loaded. + + jdduke@chromium.org + + Emitted on Android when a pull-to-refresh touch gesture initiates a page + reload. This fires only after the triggering touch is released while the + refresh effect has been pulled beyond the activation threshold. + + + Please list the metric's owners. Add more owner tags as needed. Please enter the description of this user action. diff --git a/tools/metrics/actions/extract_actions.py b/tools/metrics/actions/extract_actions.py index 63818f331165..c7f550f6981f 100755 --- a/tools/metrics/actions/extract_actions.py +++ b/tools/metrics/actions/extract_actions.py @@ -287,6 +287,7 @@ def AddAndroidActions(actions): actions.add('MobilePageLoaded') actions.add('MobilePageLoadedDesktopUserAgent') actions.add('MobilePageLoadedWithKeyboard') + actions.add('MobilePullGestureReload') actions.add('MobileReceivedExternalIntent') actions.add('MobileRendererCrashed') actions.add('MobileShortcutAllBookmarks')