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

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

Issue 2665313002: Add a counter for clicking on Form-Not-Secure warnings (Closed)
Patch Set: rebase fixup again Created 3 years, 10 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 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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 } 676 }
677 677
678 // static 678 // static
679 void AutofillMetrics::LogWalletAddressConversionType( 679 void AutofillMetrics::LogWalletAddressConversionType(
680 WalletAddressConversionType type) { 680 WalletAddressConversionType type) {
681 DCHECK_LT(type, NUM_CONVERTED_ADDRESS_CONVERSION_TYPES); 681 DCHECK_LT(type, NUM_CONVERTED_ADDRESS_CONVERSION_TYPES);
682 UMA_HISTOGRAM_ENUMERATION("Autofill.WalletAddressConversionType", type, 682 UMA_HISTOGRAM_ENUMERATION("Autofill.WalletAddressConversionType", type,
683 NUM_CONVERTED_ADDRESS_CONVERSION_TYPES); 683 NUM_CONVERTED_ADDRESS_CONVERSION_TYPES);
684 } 684 }
685 685
686 // static
687 void AutofillMetrics::LogShowedHttpNotSecureExplanation() {
688 base::RecordAction(
689 base::UserMetricsAction("Autofill_ShowedHttpNotSecureExplanation"));
690 }
691
686 AutofillMetrics::FormEventLogger::FormEventLogger(bool is_for_credit_card) 692 AutofillMetrics::FormEventLogger::FormEventLogger(bool is_for_credit_card)
687 : is_for_credit_card_(is_for_credit_card), 693 : is_for_credit_card_(is_for_credit_card),
688 is_server_data_available_(false), 694 is_server_data_available_(false),
689 is_local_data_available_(false), 695 is_local_data_available_(false),
690 has_logged_interacted_(false), 696 has_logged_interacted_(false),
691 has_logged_suggestions_shown_(false), 697 has_logged_suggestions_shown_(false),
692 has_logged_masked_server_card_suggestion_selected_(false), 698 has_logged_masked_server_card_suggestion_selected_(false),
693 has_logged_suggestion_filled_(false), 699 has_logged_suggestion_filled_(false),
694 has_logged_will_submit_(false), 700 has_logged_will_submit_(false),
695 has_logged_submitted_(false), 701 has_logged_submitted_(false),
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 else if (is_server_data_available_ && !is_local_data_available_) 878 else if (is_server_data_available_ && !is_local_data_available_)
873 name += ".WithOnlyServerData"; 879 name += ".WithOnlyServerData";
874 else if (!is_server_data_available_ && is_local_data_available_) 880 else if (!is_server_data_available_ && is_local_data_available_)
875 name += ".WithOnlyLocalData"; 881 name += ".WithOnlyLocalData";
876 else 882 else
877 name += ".WithBothServerAndLocalData"; 883 name += ".WithBothServerAndLocalData";
878 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS); 884 LogUMAHistogramEnumeration(name, event, NUM_FORM_EVENTS);
879 } 885 }
880 886
881 } // namespace autofill 887 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_metrics.h ('k') | components/autofill/core/browser/autofill_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698