diff options
author | ramankk@chromium.org <ramankk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-12 00:43:01 +0000 |
---|---|---|
committer | ramankk@chromium.org <ramankk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-12 00:43:01 +0000 |
commit | 31e9fe2a332db5cb9fd2168332a519778657cb47 (patch) | |
tree | 0074a1acc6ef93d5b412dbd3c4ee0b20c2c8ecb0 /components/autofill | |
parent | bdb303859a2dfe0e94d32aecc126822627e29002 (diff) | |
download | chromium_src-31e9fe2a332db5cb9fd2168332a519778657cb47.zip chromium_src-31e9fe2a332db5cb9fd2168332a519778657cb47.tar.gz chromium_src-31e9fe2a332db5cb9fd2168332a519778657cb47.tar.bz2 |
Add histograms for missing autocheckout metrics.
* AutocheckoutBuyFlowMetric
* WalletApiCallMetric
Added enum for BUBBLE_COULD_BE_DISPLAYED.
BUG=230446
Review URL: https://chromiumcodereview.appspot.com/14103011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193810 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/autofill')
-rw-r--r-- | components/autofill/browser/autofill_metrics.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/components/autofill/browser/autofill_metrics.cc b/components/autofill/browser/autofill_metrics.cc index 9e6671f..c062df9 100644 --- a/components/autofill/browser/autofill_metrics.cc +++ b/components/autofill/browser/autofill_metrics.cc @@ -173,32 +173,32 @@ std::string WalletApiMetricToString( AutofillMetrics::WalletApiCallMetric metric) { switch (metric) { case AutofillMetrics::ACCEPT_LEGAL_DOCUMENTS: - return "ACCEPT_LEGAL_DOCUMENTS"; + return "AcceptLegalDocuments"; case AutofillMetrics::AUTHENTICATE_INSTRUMENT: - return "AUTHENTICATE_INSTRUMENT"; + return "AuthenticateInstrument"; case AutofillMetrics::GET_FULL_WALLET: - return "GET_FULL_WALLET"; + return "GetFullWallet"; case AutofillMetrics::GET_WALLET_ITEMS: - return "GET_WALLET_ITEMS"; + return "GetWalletItems"; case AutofillMetrics::SAVE_ADDRESS: - return "SAVE_ADDRESS"; + return "SaveAddress"; case AutofillMetrics::SAVE_INSTRUMENT: - return "SAVE_INSTRUMENT"; + return "SaveInstrument"; case AutofillMetrics::SAVE_INSTRUMENT_AND_ADDRESS: - return "SAVE_INSTRUMENT_AND_ADDRESS"; + return "SaveInstrumentAndAddress"; case AutofillMetrics::SEND_STATUS: - return "SEND_STATUS"; + return "SendStatus"; case AutofillMetrics::UPDATE_ADDRESS: - return "UPDATE_ADDRESS"; + return "UpdateAddress"; case AutofillMetrics::UPDATE_INSTRUMENT: - return "UPDATE_INSTRUMENT"; + return "UpdateInstrument"; case AutofillMetrics::UNKNOWN_API_CALL: NOTREACHED(); - return "UNKNOWN_API_CALL"; + return "UnknownApiCall"; } NOTREACHED(); - return "UNKNOWN_API_CALL"; + return "UnknownApiCall"; } // A version of the UMA_HISTOGRAM_ENUMERATION macro that allows the |name| @@ -402,8 +402,8 @@ void AutofillMetrics::LogWalletErrorMetric(autofill::DialogType dialog_type, void AutofillMetrics::LogWalletApiCallDuration( WalletApiCallMetric metric, const base::TimeDelta& duration) const { - LogUMAHistogramTimes("Wallet." + WalletApiMetricToString(metric) + - ".ApiCallDuration", duration); + LogUMAHistogramTimes("Wallet.ApiCallDuration." + + WalletApiMetricToString(metric), duration); } void AutofillMetrics::LogWalletRequiredActionMetric( |