diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-09 12:33:00 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-09 12:33:00 +0000 |
commit | 4426d2df2a7516097e49bce39a6c4f93fd34193c (patch) | |
tree | 007127ad2e2fb7d8ad296c4d8d86269b71cef2ce /chrome/common/metrics | |
parent | 7d0aad884bc77743d7bfed16bf4edd648a107e70 (diff) | |
download | chromium_src-4426d2df2a7516097e49bce39a6c4f93fd34193c.zip chromium_src-4426d2df2a7516097e49bce39a6c4f93fd34193c.tar.gz chromium_src-4426d2df2a7516097e49bce39a6c4f93fd34193c.tar.bz2 |
[UMA, Cleanup] Pass a const std::string& rather than a const char*.
BUG=none
TEST=none
R=asvitkine@chromium.org
Review URL: https://codereview.chromium.org/229673003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262662 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/metrics')
-rw-r--r-- | chrome/common/metrics/metrics_log_base.cc | 2 | ||||
-rw-r--r-- | chrome/common/metrics/metrics_log_base.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/metrics/metrics_log_base.cc b/chrome/common/metrics/metrics_log_base.cc index 748228c..1e5cead 100644 --- a/chrome/common/metrics/metrics_log_base.cc +++ b/chrome/common/metrics/metrics_log_base.cc @@ -111,7 +111,7 @@ void MetricsLogBase::GetEncodedLog(std::string* encoded_log) { uma_proto_.SerializeToString(encoded_log); } -void MetricsLogBase::RecordUserAction(const char* key) { +void MetricsLogBase::RecordUserAction(const std::string& key) { DCHECK(!locked_); UserActionEventProto* user_action = uma_proto_.add_user_action_event(); diff --git a/chrome/common/metrics/metrics_log_base.h b/chrome/common/metrics/metrics_log_base.h index 92e7206..c468229 100644 --- a/chrome/common/metrics/metrics_log_base.h +++ b/chrome/common/metrics/metrics_log_base.h @@ -56,7 +56,7 @@ class MetricsLogBase { static int64 GetCurrentTime(); // Records a user-initiated action. - void RecordUserAction(const char* key); + void RecordUserAction(const std::string& key); // Record any changes in a given histogram for transmission. void RecordHistogramDelta(const std::string& histogram_name, |