Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c35d7c1 authored by Daniel Erat's avatar Daniel Erat
Browse files

metrics: Update comment about adding user actions.

This points people at chrome/tools/extract_actions.py,
where new actions can be registered without needing to
modify C++ code (once http://codereview.chromium.org/6266011/
is committed).

Change-Id: If7ceaa38939ab9c1594aacd999e0ec86c4541d41

BUG=chromium-os:10696
TEST=none

Review URL: http://codereview.chromium.org/6320009
parent ca90d8b4
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -72,9 +72,12 @@ class MetricsLibrary : public MetricsLibraryInterface {

  // Sends a user action to Chrome for transport to UMA and returns true on
  // success. This method results in the equivalent of an asynchronous
  // non-blocking RPC to UserMetrics::RecordAction (see the comments in
  // chrome/browser/chromeos/external_metrics.cc and
  // chrome/browser/metrics/user_metrics.h on how to register new user actions).
  // non-blocking RPC to UserMetrics::RecordAction.  The new metric must be
  // added to chrome/tools/extract_actions.py in the Chromium repository, which
  // should then be run to generate a hash for the new action.
  //
  // Until http://crosbug.com/11125 is fixed, the metric must also be added to
  // chrome/browser/chromeos/external_metrics.cc.
  //
  // |action| is the user-generated event (e.g., "MuteKeyPressed").
  bool SendUserActionToUMA(const std::string& action);