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

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

Issue 5963004: Add autofill metrics to dig into the failure case. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_AUTOFILL_AUTOFILL_METRICS_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_METRICS_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_METRICS_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_METRICS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
(...skipping 27 matching lines...) Expand all
38 FIELD_SUBMITTED = 0, 38 FIELD_SUBMITTED = 0,
39 // A simple successs metric, logged for each field that returns true for 39 // A simple successs metric, logged for each field that returns true for
40 // |is_autofilled()| and has a value that is present in the personal data 40 // |is_autofilled()| and has a value that is present in the personal data
41 // manager. There is a small chance of false positives from filling via 41 // manager. There is a small chance of false positives from filling via
42 // autocomplete rather than autofill. 42 // autocomplete rather than autofill.
43 FIELD_AUTOFILLED, 43 FIELD_AUTOFILLED,
44 // A simple failure metric, logged for each field that returns false for 44 // A simple failure metric, logged for each field that returns false for
45 // |is_autofilled()| but as a value that is present in the personal data 45 // |is_autofilled()| but as a value that is present in the personal data
46 // manager. 46 // manager.
47 FIELD_AUTOFILL_FAILED, 47 FIELD_AUTOFILL_FAILED,
48 // The below are only logged when |FIELD_AUTOFILL_FAILED| is also logged.
49 FIELD_HEURISTIC_TYPE_UNKNOWN,
50 FIELD_HEURISTIC_TYPE_MATCH,
51 FIELD_HEURISTIC_TYPE_MISMATCH,
52 FIELD_SERVER_TYPE_UNKNOWN,
53 FIELD_SERVER_TYPE_MATCH,
54 FIELD_SERVER_TYPE_MISMATCH,
48 NUM_QUALITY_METRICS 55 NUM_QUALITY_METRICS
49 }; 56 };
50 57
51 AutoFillMetrics(); 58 AutoFillMetrics();
52 virtual ~AutoFillMetrics(); 59 virtual ~AutoFillMetrics();
53 60
54 virtual void Log(ServerQueryMetric metric) const; 61 virtual void Log(ServerQueryMetric metric) const;
55 virtual void Log(QualityMetric metric) const; 62 virtual void Log(QualityMetric metric) const;
56 63
57 private: 64 private:
58 DISALLOW_COPY_AND_ASSIGN(AutoFillMetrics); 65 DISALLOW_COPY_AND_ASSIGN(AutoFillMetrics);
59 }; 66 };
60 67
61 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_METRICS_H_ 68 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_METRICS_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/autofill/autofill_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698