summaryrefslogtreecommitdiffstats
path: root/chrome/browser/metrics/user_metrics.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-17 19:04:12 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-17 19:04:12 +0000
commitafe3a16739185a648a21a34e07f3cdb5f1a23c2f (patch)
tree4c82ce550948ed3d67a7a46a1aa066c9080412fb /chrome/browser/metrics/user_metrics.h
parentd699e3a52d6431ea5d2a691f77866ac8ec7ba350 (diff)
downloadchromium_src-afe3a16739185a648a21a34e07f3cdb5f1a23c2f.zip
chromium_src-afe3a16739185a648a21a34e07f3cdb5f1a23c2f.tar.gz
chromium_src-afe3a16739185a648a21a34e07f3cdb5f1a23c2f.tar.bz2
Use plain strings instead of wstrings for UMA actions
git grep 'RecordAction(L' | xargs sed -i -e s/RecordAction(L/RecordAction(/ This cuts more than 10k off my binary. Which is nothing compared to the size of the binary, but that's a whole lot of zero bytes! This is less code this way anyway. Review URL: http://codereview.chromium.org/399026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32194 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/metrics/user_metrics.h')
-rw-r--r--chrome/browser/metrics/user_metrics.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/metrics/user_metrics.h b/chrome/browser/metrics/user_metrics.h
index e937b21..4329fcc 100644
--- a/chrome/browser/metrics/user_metrics.h
+++ b/chrome/browser/metrics/user_metrics.h
@@ -22,18 +22,18 @@ class UserMetrics {
// interacting with the browser.
// WARNING: Call this function exactly like this, with the string literal
// inline:
- // UserMetrics::RecordAction(L"foo bar", profile);
+ // UserMetrics::RecordAction("foo bar", profile);
// because otherwise our processing scripts won't pick up on new actions.
//
// For more complicated situations (like when there are many different
// possible actions), see RecordComputedAction.
- static void RecordAction(const wchar_t* action, Profile* profile);
+ static void RecordAction(const char* action, Profile* profile);
// This function has identical input and behavior to RecordAction, but is
// not automatically found by the action-processing scripts. It can be used
// when it's a pain to enumerate all possible actions, but if you use this
// you need to also update the rules for extracting known actions.
- static void RecordComputedAction(const std::wstring& action,
+ static void RecordComputedAction(const std::string& action,
Profile* profile);
};