[UMA] Fix a crash on logging user actions posted from a non-UI thread.

Along the way, add DCHECKs to verify that user actions are always posted from
the UI thread.

BUG=360271
TEST=none
R=asvitkine@chromium.org, avi@chromium.org

Review URL: https://codereview.chromium.org/229873002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262885 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: abca0989b4c88ca4fda2d1e547eca3c08da6bb49
diff --git a/base/metrics/user_metrics.h b/base/metrics/user_metrics.h
index 57356c3..bcfefb8 100644
--- a/base/metrics/user_metrics.h
+++ b/base/metrics/user_metrics.h
@@ -17,6 +17,8 @@
 // the user metrics system.
 
 // Record that the user performed an action.
+// This method *must* be called from the main thread.
+//
 // "Action" here means a user-generated event:
 //   good: "Reload", "CloseTab", and "IMEInvoked"
 //   not good: "SSLDialogShown", "PageLoaded", "DiskFull"