| OLD | NEW | 
|    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" | 
|   11 #include "chrome/browser/autofill/form_structure.h" |   11 #include "chrome/browser/autofill/form_structure.h" | 
|   12 #include "chrome/common/form_data.h" |   12 #include "components/autofill/common/form_data.h" | 
|   13  |   13  | 
|   14 namespace { |   14 namespace { | 
|   15  |   15  | 
|   16 // Server experiments we support. |   16 // Server experiments we support. | 
|   17 enum ServerExperiment { |   17 enum ServerExperiment { | 
|   18   NO_EXPERIMENT = 0, |   18   NO_EXPERIMENT = 0, | 
|   19   UNKNOWN_EXPERIMENT, |   19   UNKNOWN_EXPERIMENT, | 
|   20   ACCEPTANCE_RATIO_06, |   20   ACCEPTANCE_RATIO_06, | 
|   21   ACCEPTANCE_RATIO_1, |   21   ACCEPTANCE_RATIO_1, | 
|   22   ACCEPTANCE_RATIO_2, |   22   ACCEPTANCE_RATIO_2, | 
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  444  |  444  | 
|  445 void AutofillMetrics::LogServerExperimentIdForQuery( |  445 void AutofillMetrics::LogServerExperimentIdForQuery( | 
|  446     const std::string& experiment_id) const { |  446     const std::string& experiment_id) const { | 
|  447   LogServerExperimentId("Autofill.ServerExperimentId.Query", experiment_id); |  447   LogServerExperimentId("Autofill.ServerExperimentId.Query", experiment_id); | 
|  448 } |  448 } | 
|  449  |  449  | 
|  450 void AutofillMetrics::LogServerExperimentIdForUpload( |  450 void AutofillMetrics::LogServerExperimentIdForUpload( | 
|  451     const std::string& experiment_id) const { |  451     const std::string& experiment_id) const { | 
|  452   LogServerExperimentId("Autofill.ServerExperimentId.Upload", experiment_id); |  452   LogServerExperimentId("Autofill.ServerExperimentId.Upload", experiment_id); | 
|  453 } |  453 } | 
| OLD | NEW |