Index: ui/touch_selection/touch_selection_controller.cc |
diff --git a/ui/touch_selection/touch_selection_controller.cc b/ui/touch_selection/touch_selection_controller.cc |
index 230942f6f7f3a2163791a64d2837ec3bbf984c0e..d75a73d16ced6e3609a0cdca93808a3a81cb54be 100644 |
--- a/ui/touch_selection/touch_selection_controller.cc |
+++ b/ui/touch_selection/touch_selection_controller.cc |
@@ -7,6 +7,7 @@ |
#include "base/auto_reset.h" |
#include "base/logging.h" |
#include "base/metrics/histogram_macros.h" |
+#include "base/metrics/user_metrics.h" |
namespace ui { |
namespace { |
@@ -384,6 +385,9 @@ void TouchSelectionController::OnDragBegin( |
if (anchor_drag_to_selection_start_) |
std::swap(base, extent); |
+ // If this is the first drag, log an action to allow user action sequencing. |
+ if (!selection_handle_dragged_) |
+ base::RecordAction(base::UserMetricsAction("SelectionChanged")); |
selection_handle_dragged_ = true; |
// When moving the handle we want to move only the extent point. Before doing |