Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: components/autofill/core/browser/autofill_metrics.cc

Issue 17970003: New encryption/escrow endpoints for Wallet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Dane's review Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/core/browser/autofill_metrics.h" 5 #include "components/autofill/core/browser/autofill_metrics.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "components/autofill/core/browser/autofill_type.h" 10 #include "components/autofill/core/browser/autofill_type.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 AutofillMetrics::WalletApiCallMetric metric) { 175 AutofillMetrics::WalletApiCallMetric metric) {
176 switch (metric) { 176 switch (metric) {
177 case AutofillMetrics::ACCEPT_LEGAL_DOCUMENTS: 177 case AutofillMetrics::ACCEPT_LEGAL_DOCUMENTS:
178 return "AcceptLegalDocuments"; 178 return "AcceptLegalDocuments";
179 case AutofillMetrics::AUTHENTICATE_INSTRUMENT: 179 case AutofillMetrics::AUTHENTICATE_INSTRUMENT:
180 return "AuthenticateInstrument"; 180 return "AuthenticateInstrument";
181 case AutofillMetrics::GET_FULL_WALLET: 181 case AutofillMetrics::GET_FULL_WALLET:
182 return "GetFullWallet"; 182 return "GetFullWallet";
183 case AutofillMetrics::GET_WALLET_ITEMS: 183 case AutofillMetrics::GET_WALLET_ITEMS:
184 return "GetWalletItems"; 184 return "GetWalletItems";
185 case AutofillMetrics::SAVE_ADDRESS: 185 case AutofillMetrics::SAVE_TO_WALLET:
186 return "SaveAddress"; 186 return "SaveToWallet";
187 case AutofillMetrics::SAVE_INSTRUMENT:
188 return "SaveInstrument";
189 case AutofillMetrics::SAVE_INSTRUMENT_AND_ADDRESS:
190 return "SaveInstrumentAndAddress";
191 case AutofillMetrics::SEND_STATUS: 187 case AutofillMetrics::SEND_STATUS:
192 return "SendStatus"; 188 return "SendStatus";
193 case AutofillMetrics::UPDATE_ADDRESS: 189 case AutofillMetrics::SAVE_ADDRESS_DEPRECATED:
194 return "UpdateAddress"; 190 case AutofillMetrics::SAVE_INSTRUMENT_DEPRECATED:
195 case AutofillMetrics::UPDATE_INSTRUMENT: 191 case AutofillMetrics::SAVE_INSTRUMENT_AND_ADDRESS_DEPRECATED:
196 return "UpdateInstrument"; 192 case AutofillMetrics::UPDATE_ADDRESS_DEPRECATED:
193 case AutofillMetrics::UPDATE_INSTRUMENT_DEPRECATED:
197 case AutofillMetrics::UNKNOWN_API_CALL: 194 case AutofillMetrics::UNKNOWN_API_CALL:
198 NOTREACHED(); 195 NOTREACHED();
199 return "UnknownApiCall"; 196 return "UnknownApiCall";
200 } 197 }
201 198
202 NOTREACHED(); 199 NOTREACHED();
203 return "UnknownApiCall"; 200 return "UnknownApiCall";
204 } 201 }
205 202
206 // A version of the UMA_HISTOGRAM_ENUMERATION macro that allows the |name| 203 // A version of the UMA_HISTOGRAM_ENUMERATION macro that allows the |name|
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 const std::string& experiment_id) const { 594 const std::string& experiment_id) const {
598 LogServerExperimentId("Autofill.ServerExperimentId.Query", experiment_id); 595 LogServerExperimentId("Autofill.ServerExperimentId.Query", experiment_id);
599 } 596 }
600 597
601 void AutofillMetrics::LogServerExperimentIdForUpload( 598 void AutofillMetrics::LogServerExperimentIdForUpload(
602 const std::string& experiment_id) const { 599 const std::string& experiment_id) const {
603 LogServerExperimentId("Autofill.ServerExperimentId.Upload", experiment_id); 600 LogServerExperimentId("Autofill.ServerExperimentId.Upload", experiment_id);
604 } 601 }
605 602
606 } // namespace autofill 603 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698