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

Side by Side Diff: chrome/browser/autofill/autofill_metrics.cc

Issue 11539003: Pop up requestAutocomplete UI when autofill server hints chrome client that it is in a multipage au… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Resolve with AutofillDialogController refactoring. Created 7 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/autofill/autofill_metrics.h" 5 #include "chrome/browser/autofill/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.h" 9 #include "base/time.h"
10 #include "chrome/browser/autofill/autofill_type.h" 10 #include "chrome/browser/autofill/autofill_type.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 AutofillMetrics::~AutofillMetrics() { 254 AutofillMetrics::~AutofillMetrics() {
255 } 255 }
256 256
257 void AutofillMetrics::LogCreditCardInfoBarMetric(InfoBarMetric metric) const { 257 void AutofillMetrics::LogCreditCardInfoBarMetric(InfoBarMetric metric) const {
258 DCHECK(metric < NUM_INFO_BAR_METRICS); 258 DCHECK(metric < NUM_INFO_BAR_METRICS);
259 259
260 UMA_HISTOGRAM_ENUMERATION("Autofill.CreditCardInfoBar", metric, 260 UMA_HISTOGRAM_ENUMERATION("Autofill.CreditCardInfoBar", metric,
261 NUM_INFO_BAR_METRICS); 261 NUM_INFO_BAR_METRICS);
262 } 262 }
263 263
264 void AutofillMetrics::LogAutocheckoutInfoBarMetric(InfoBarMetric metric) const {
265 DCHECK(metric < NUM_INFO_BAR_METRICS);
266
267 UMA_HISTOGRAM_ENUMERATION("Autofill.AutocheckoutInfoBar", metric,
268 NUM_INFO_BAR_METRICS);
269 }
270
264 void AutofillMetrics::LogDeveloperEngagementMetric( 271 void AutofillMetrics::LogDeveloperEngagementMetric(
265 DeveloperEngagementMetric metric) const { 272 DeveloperEngagementMetric metric) const {
266 DCHECK(metric < NUM_DEVELOPER_ENGAGEMENT_METRICS); 273 DCHECK(metric < NUM_DEVELOPER_ENGAGEMENT_METRICS);
267 274
268 UMA_HISTOGRAM_ENUMERATION("Autofill.DeveloperEngagement", metric, 275 UMA_HISTOGRAM_ENUMERATION("Autofill.DeveloperEngagement", metric,
269 NUM_DEVELOPER_ENGAGEMENT_METRICS); 276 NUM_DEVELOPER_ENGAGEMENT_METRICS);
270 } 277 }
271 278
272 void AutofillMetrics::LogHeuristicTypePrediction( 279 void AutofillMetrics::LogHeuristicTypePrediction(
273 FieldTypeQualityMetric metric, 280 FieldTypeQualityMetric metric,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 384
378 void AutofillMetrics::LogServerExperimentIdForQuery( 385 void AutofillMetrics::LogServerExperimentIdForQuery(
379 const std::string& experiment_id) const { 386 const std::string& experiment_id) const {
380 LogServerExperimentId("Autofill.ServerExperimentId.Query", experiment_id); 387 LogServerExperimentId("Autofill.ServerExperimentId.Query", experiment_id);
381 } 388 }
382 389
383 void AutofillMetrics::LogServerExperimentIdForUpload( 390 void AutofillMetrics::LogServerExperimentIdForUpload(
384 const std::string& experiment_id) const { 391 const std::string& experiment_id) const {
385 LogServerExperimentId("Autofill.ServerExperimentId.Upload", experiment_id); 392 LogServerExperimentId("Autofill.ServerExperimentId.Upload", experiment_id);
386 } 393 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_metrics.h ('k') | chrome/browser/autofill/autofill_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698