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

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: clean 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
« no previous file with comments | « components/autofill/core/browser/autofill_download_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « components/autofill/core/browser/autofill_download_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698