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

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

Issue 2809213002: [autofill] Expand Autofill.Quality.* to log false positives/true negatives. (Closed)
Patch Set: fix nits Created 3 years, 8 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
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_metrics_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 // the prompt was showing. 255 // the prompt was showing.
256 SAVE_CARD_PROMPT_END_NAVIGATION_SHOWING, 256 SAVE_CARD_PROMPT_END_NAVIGATION_SHOWING,
257 // The prompt and icon were removed because of navigation away from the 257 // The prompt and icon were removed because of navigation away from the
258 // page that caused the prompt to be shown. The navigation occurred while 258 // page that caused the prompt to be shown. The navigation occurred while
259 // the prompt was hidden. 259 // the prompt was hidden.
260 SAVE_CARD_PROMPT_END_NAVIGATION_HIDDEN, 260 SAVE_CARD_PROMPT_END_NAVIGATION_HIDDEN,
261 // The prompt was dismissed because the user clicked the "Learn more" link. 261 // The prompt was dismissed because the user clicked the "Learn more" link.
262 SAVE_CARD_PROMPT_DISMISS_CLICK_LEARN_MORE, 262 SAVE_CARD_PROMPT_DISMISS_CLICK_LEARN_MORE,
263 // The prompt was dismissed because the user clicked a legal message link. 263 // The prompt was dismissed because the user clicked a legal message link.
264 SAVE_CARD_PROMPT_DISMISS_CLICK_LEGAL_MESSAGE, 264 SAVE_CARD_PROMPT_DISMISS_CLICK_LEGAL_MESSAGE,
265
265 NUM_SAVE_CARD_PROMPT_METRICS, 266 NUM_SAVE_CARD_PROMPT_METRICS,
266 }; 267 };
267 268
268 // Metrics measuring how well we predict field types. Exactly three such 269 // Metrics measuring how well we predict field types. Exactly three such
269 // metrics are logged for each fillable field in a submitted form: for 270 // metrics are logged for each fillable field in a submitted form: for
270 // the heuristic prediction, for the crowd-sourced prediction, and for the 271 // the heuristic prediction, for the crowd-sourced prediction, and for the
271 // overall prediction. 272 // overall prediction.
272 enum FieldTypeQualityMetric { 273 enum FieldTypeQualityMetric {
273 TYPE_UNKNOWN = 0, // Offered no prediction. 274 // The field was found to be of type T, but autofill made no prediction.
274 TYPE_MATCH, // Predicted correctly. 275 TYPE_UNKNOWN = 0,
275 TYPE_MISMATCH, // Predicted incorrectly. 276 // The field was found to be of type T, which matches the predicted type.
277 TYPE_MATCH,
278 // The field was found to be of type T, autofill predicted some other type.
279 TYPE_MISMATCH,
280 // The field was left empty and autofil predicted that the field type would
281 // be UNKNOWN.
282 TYPE_MATCH_EMPTY,
283 // The field was populated with data that did not match any part of the
284 // user's profile (it's type could not be determined). Autofill predicted
285 // the field's type would be UNKNOWN.
286 TYPE_MATCH_UNKNOWN,
287 // The field was left empty, autofill predicted the user would populate it
288 // with autofillable data.
289 TYPE_MISMATCH_EMPTY,
290 // The field was populated with data that did not match any part of the
291 // user's profile (it's type could not be determined). Autofill predicted
292 // the user would populate it with autofillable data.
293 TYPE_MISMATCH_UNKNOWN,
294 // This must be the last value.
276 NUM_FIELD_TYPE_QUALITY_METRICS, 295 NUM_FIELD_TYPE_QUALITY_METRICS,
277 }; 296 };
278 297
279 enum QualityMetricType { 298 enum QualityMetricType {
280 TYPE_SUBMISSION = 0, // Logged based on user's submitted data. 299 TYPE_SUBMISSION = 0, // Logged based on user's submitted data.
281 TYPE_NO_SUBMISSION, // Logged based on user's entered data. 300 TYPE_NO_SUBMISSION, // Logged based on user's entered data.
282 TYPE_AUTOCOMPLETE_BASED, // Logged based on the value of autocomplete attr. 301 TYPE_AUTOCOMPLETE_BASED, // Logged based on the value of autocomplete attr.
283 NUM_QUALITY_METRIC_TYPES, 302 NUM_QUALITY_METRIC_TYPES,
284 }; 303 };
285 304
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 FormFieldData last_polled_field_; 792 FormFieldData last_polled_field_;
774 }; 793 };
775 794
776 private: 795 private:
777 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); 796 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics);
778 }; 797 };
779 798
780 } // namespace autofill 799 } // namespace autofill
781 800
782 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 801 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698