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

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

Issue 12588002: [Autofill] Add user type metrics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment cleanup Created 7 years, 9 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 (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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 317
318 case DIALOG_CANCELED: 318 case DIALOG_CANCELED:
319 suffix = "Cancel"; 319 suffix = "Cancel";
320 break; 320 break;
321 } 321 }
322 322
323 LogUMAHistogramLongTimes(prefix + ".UiDuration", duration); 323 LogUMAHistogramLongTimes(prefix + ".UiDuration", duration);
324 LogUMAHistogramLongTimes(prefix + ".UiDuration." + suffix, duration); 324 LogUMAHistogramLongTimes(prefix + ".UiDuration." + suffix, duration);
325 } 325 }
326 326
327 void AutofillMetrics::LogDialogInitialUserState(
328 autofill::DialogType dialog_type,
329 DialogInitialUserStateMetric user_type) const {
330 std::string name = GetPrefixForDialogType(dialog_type) + ".InitialUserState";
331 LogUMAHistogramEnumeration(
332 name, user_type, NUM_DIALOG_INITIAL_USER_STATE_METRICS);
333 }
334
327 void AutofillMetrics::LogWalletErrorMetric(autofill::DialogType dialog_type, 335 void AutofillMetrics::LogWalletErrorMetric(autofill::DialogType dialog_type,
328 WalletErrorMetric metric) const { 336 WalletErrorMetric metric) const {
329 std::string name = GetPrefixForDialogType(dialog_type) + ".WalletErrors"; 337 std::string name = GetPrefixForDialogType(dialog_type) + ".WalletErrors";
330 LogUMAHistogramEnumeration(name, metric, NUM_WALLET_ERROR_METRICS); 338 LogUMAHistogramEnumeration(name, metric, NUM_WALLET_ERROR_METRICS);
331 } 339 }
332 340
333 void AutofillMetrics::LogWalletRequiredActionMetric( 341 void AutofillMetrics::LogWalletRequiredActionMetric(
334 autofill::DialogType dialog_type, 342 autofill::DialogType dialog_type,
335 WalletRequiredActionMetric required_action) const { 343 WalletRequiredActionMetric required_action) const {
336 std::string name = 344 std::string name =
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 481
474 void AutofillMetrics::LogServerExperimentIdForQuery( 482 void AutofillMetrics::LogServerExperimentIdForQuery(
475 const std::string& experiment_id) const { 483 const std::string& experiment_id) const {
476 LogServerExperimentId("Autofill.ServerExperimentId.Query", experiment_id); 484 LogServerExperimentId("Autofill.ServerExperimentId.Query", experiment_id);
477 } 485 }
478 486
479 void AutofillMetrics::LogServerExperimentIdForUpload( 487 void AutofillMetrics::LogServerExperimentIdForUpload(
480 const std::string& experiment_id) const { 488 const std::string& experiment_id) const {
481 LogServerExperimentId("Autofill.ServerExperimentId.Upload", experiment_id); 489 LogServerExperimentId("Autofill.ServerExperimentId.Upload", experiment_id);
482 } 490 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698