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

Unified Diff: components/autofill/core/browser/form_structure.cc

Issue 1622703002: [Autofill] Re-introduce some debug logs for Autofill queries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
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..f41583b01fe6c17d6b2b6488202e436877478d19 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& s,
+ const autofill::AutofillQueryResponseContents& response) {
+ s << "upload_required: " << response.upload_required();
+ for (const auto& field : response.field()) {
+ s << "\nautofill_type: " << field.autofill_type();
+ }
+ return s;
+}
+
} // namespace
FormStructure::FormStructure(const FormData& form)
@@ -433,6 +443,8 @@ void FormStructure::ParseQueryResponse(std::string payload,
if (!response.ParseFromString(payload))
return;
+ VLOG(1) << response;
+
AutofillMetrics::LogServerQueryMetric(AutofillMetrics::QUERY_RESPONSE_PARSED);
bool heuristics_detected_fillable_field = false;

Powered by Google App Engine
This is Rietveld 408576698