| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 default: | 113 default: |
| 114 NOTREACHED(); | 114 NOTREACHED(); |
| 115 group = AMBIGUOUS; | 115 group = AMBIGUOUS; |
| 116 } | 116 } |
| 117 break; | 117 break; |
| 118 | 118 |
| 119 case AutofillType::EMAIL: | 119 case AutofillType::EMAIL: |
| 120 group = EMAIL; | 120 group = EMAIL; |
| 121 break; | 121 break; |
| 122 | 122 |
| 123 case AutofillType::PHONE_HOME: | 123 case AutofillType::PHONE: |
| 124 group = PHONE; | 124 group = PHONE; |
| 125 break; | 125 break; |
| 126 | 126 |
| 127 case AutofillType::CREDIT_CARD: | 127 case AutofillType::CREDIT_CARD: |
| 128 switch (field_type) { | 128 switch (field_type) { |
| 129 case ::CREDIT_CARD_NAME: | 129 case ::CREDIT_CARD_NAME: |
| 130 group = CREDIT_CARD_NAME; | 130 group = CREDIT_CARD_NAME; |
| 131 break; | 131 break; |
| 132 case ::CREDIT_CARD_NUMBER: | 132 case ::CREDIT_CARD_NUMBER: |
| 133 group = CREDIT_CARD_NUMBER; | 133 group = CREDIT_CARD_NUMBER; |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 351 |
| 352 void AutofillMetrics::LogServerExperimentIdForQuery( | 352 void AutofillMetrics::LogServerExperimentIdForQuery( |
| 353 const std::string& experiment_id) const { | 353 const std::string& experiment_id) const { |
| 354 LogServerExperimentId("Autofill.ServerExperimentId.Query", experiment_id); | 354 LogServerExperimentId("Autofill.ServerExperimentId.Query", experiment_id); |
| 355 } | 355 } |
| 356 | 356 |
| 357 void AutofillMetrics::LogServerExperimentIdForUpload( | 357 void AutofillMetrics::LogServerExperimentIdForUpload( |
| 358 const std::string& experiment_id) const { | 358 const std::string& experiment_id) const { |
| 359 LogServerExperimentId("Autofill.ServerExperimentId.Upload", experiment_id); | 359 LogServerExperimentId("Autofill.ServerExperimentId.Upload", experiment_id); |
| 360 } | 360 } |
| OLD | NEW |