Index: components/autofill/core/browser/form_structure.cc |
diff --git a/components/autofill/core/browser/form_structure.cc b/components/autofill/core/browser/form_structure.cc |
index a58c1c8b67c13c4def44dc584633b0419863bd3a..73aeb1a6b95ca779ba62df604c7afb57efd9d10f 100644 |
--- a/components/autofill/core/browser/form_structure.cc |
+++ b/components/autofill/core/browser/form_structure.cc |
@@ -272,6 +272,16 @@ std::string StripDigitsIfRequired(const base::string16& input) { |
return return_string; |
} |
+std::ostream& operator<<( |
+ std::ostream& out, |
+ const autofill::AutofillQueryResponseContents& response) { |
+ out << "upload_required: " << response.upload_required(); |
+ for (const auto& field : response.field()) { |
+ out << "\nautofill_type: " << field.autofill_type(); |
+ } |
+ return out; |
+} |
+ |
} // namespace |
FormStructure::FormStructure(const FormData& form) |
@@ -433,6 +443,8 @@ void FormStructure::ParseQueryResponse(std::string payload, |
if (!response.ParseFromString(payload)) |
return; |
+ VLOG(1) << "Autofill query response was successfully parsed:\n" << response; |
+ |
AutofillMetrics::LogServerQueryMetric(AutofillMetrics::QUERY_RESPONSE_PARSED); |
bool heuristics_detected_fillable_field = false; |