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

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: Updated histograms.xml 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:
194 return "UpdateAddress";
195 case AutofillMetrics::UPDATE_INSTRUMENT:
196 return "UpdateInstrument";
197 case AutofillMetrics::UNKNOWN_API_CALL: 189 case AutofillMetrics::UNKNOWN_API_CALL:
198 NOTREACHED(); 190 NOTREACHED();
199 return "UnknownApiCall"; 191 return "UnknownApiCall";
200 } 192 }
201 193
202 NOTREACHED(); 194 NOTREACHED();
203 return "UnknownApiCall"; 195 return "UnknownApiCall";
204 } 196 }
205 197
206 // A version of the UMA_HISTOGRAM_ENUMERATION macro that allows the |name| 198 // 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 { 589 const std::string& experiment_id) const {
598 LogServerExperimentId("Autofill.ServerExperimentId.Query", experiment_id); 590 LogServerExperimentId("Autofill.ServerExperimentId.Query", experiment_id);
599 } 591 }
600 592
601 void AutofillMetrics::LogServerExperimentIdForUpload( 593 void AutofillMetrics::LogServerExperimentIdForUpload(
602 const std::string& experiment_id) const { 594 const std::string& experiment_id) const {
603 LogServerExperimentId("Autofill.ServerExperimentId.Upload", experiment_id); 595 LogServerExperimentId("Autofill.ServerExperimentId.Upload", experiment_id);
604 } 596 }
605 597
606 } // namespace autofill 598 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698