| Index: chrome/browser/autofill/form_structure.cc
|
| diff --git a/chrome/browser/autofill/form_structure.cc b/chrome/browser/autofill/form_structure.cc
|
| index 2958df6728282b46ecbdf4755861b7569ce68504..4329aaf533fb6b43b885f522ec49926a369e5cea 100644
|
| --- a/chrome/browser/autofill/form_structure.cc
|
| +++ b/chrome/browser/autofill/form_structure.cc
|
| @@ -192,11 +192,12 @@ bool FormStructure::EncodeQueryRequest(const ScopedVector<FormStructure>& forms,
|
| }
|
|
|
| // static
|
| -void FormStructure::ParseQueryResponse(const std::string& response_xml,
|
| - const std::vector<FormStructure*>& forms,
|
| - UploadRequired* upload_required) {
|
| - autofill_metrics::LogServerQueryMetric(
|
| - autofill_metrics::QUERY_RESPONSE_RECEIVED);
|
| +void FormStructure::ParseQueryResponse(
|
| + const std::string& response_xml,
|
| + const std::vector<FormStructure*>& forms,
|
| + UploadRequired* upload_required,
|
| + autofill_metrics::LogServerQueryMetricFn log_server_query_metric) {
|
| + log_server_query_metric(autofill_metrics::QUERY_RESPONSE_RECEIVED);
|
|
|
| // Parse the field types from the server response to the query.
|
| std::vector<AutoFillFieldType> field_types;
|
| @@ -206,8 +207,7 @@ void FormStructure::ParseQueryResponse(const std::string& response_xml,
|
| if (!parse_handler.succeeded())
|
| return;
|
|
|
| - autofill_metrics::LogServerQueryMetric(
|
| - autofill_metrics::QUERY_RESPONSE_PARSED);
|
| + log_server_query_metric(autofill_metrics::QUERY_RESPONSE_PARSED);
|
|
|
| bool heuristics_detected_fillable_field = false;
|
| bool query_response_overrode_heuristics = false;
|
| @@ -260,7 +260,7 @@ void FormStructure::ParseQueryResponse(const std::string& response_xml,
|
| } else {
|
| metric_type = autofill_metrics::QUERY_RESPONSE_MATCHED_LOCAL_HEURISTICS;
|
| }
|
| - autofill_metrics::LogServerQueryMetric(metric_type);
|
| + log_server_query_metric(metric_type);
|
| }
|
|
|
| std::string FormStructure::FormSignature() const {
|
|
|