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

Side by Side Diff: components/autofill/core/browser/autofill_manager.cc

Issue 2940983003: [autofill] Add UKM for field type prediction quality and autofill outcome. (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/autofill/core/browser/autofill_manager.h" 5 #include "components/autofill/core/browser/autofill_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 // the query response. 1004 // the query response.
1005 if (queried_forms.empty()) 1005 if (queried_forms.empty())
1006 return; 1006 return;
1007 1007
1008 // Parse and store the server predictions. 1008 // Parse and store the server predictions.
1009 FormStructure::ParseQueryResponse(std::move(response), queried_forms, 1009 FormStructure::ParseQueryResponse(std::move(response), queried_forms,
1010 client_->GetRapporServiceImpl()); 1010 client_->GetRapporServiceImpl());
1011 1011
1012 // Will log quality metrics for each FormStructure based on the presence of 1012 // Will log quality metrics for each FormStructure based on the presence of
1013 // autocomplete attributes, if available. 1013 // autocomplete attributes, if available.
1014 for (FormStructure* cur_form : queried_forms) 1014 for (FormStructure* cur_form : queried_forms) {
1015 cur_form->LogQualityMetricsBasedOnAutocomplete(); 1015 cur_form->LogQualityMetricsBasedOnAutocomplete(
1016 form_interactions_ukm_logger_.get());
1017 }
1016 1018
1017 // Forward form structures to the password generation manager to detect 1019 // Forward form structures to the password generation manager to detect
1018 // account creation forms. 1020 // account creation forms.
1019 driver()->PropagateAutofillPredictions(queried_forms); 1021 driver()->PropagateAutofillPredictions(queried_forms);
1020 1022
1021 // If the corresponding flag is set, annotate forms with the predicted types. 1023 // If the corresponding flag is set, annotate forms with the predicted types.
1022 driver()->SendAutofillTypePredictionsToRenderer(queried_forms); 1024 driver()->SendAutofillTypePredictionsToRenderer(queried_forms);
1023 } 1025 }
1024 1026
1025 IdentityProvider* AutofillManager::GetIdentityProvider() { 1027 IdentityProvider* AutofillManager::GetIdentityProvider() {
(...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after
2356 #endif // ENABLE_FORM_DEBUG_DUMP 2358 #endif // ENABLE_FORM_DEBUG_DUMP
2357 2359
2358 void AutofillManager::LogCardUploadDecisions(int upload_decision_metrics) { 2360 void AutofillManager::LogCardUploadDecisions(int upload_decision_metrics) {
2359 AutofillMetrics::LogCardUploadDecisionMetrics(upload_decision_metrics); 2361 AutofillMetrics::LogCardUploadDecisionMetrics(upload_decision_metrics);
2360 AutofillMetrics::LogCardUploadDecisionsUkm(client_->GetUkmRecorder(), 2362 AutofillMetrics::LogCardUploadDecisionsUkm(client_->GetUkmRecorder(),
2361 pending_upload_request_url_, 2363 pending_upload_request_url_,
2362 upload_decision_metrics); 2364 upload_decision_metrics);
2363 } 2365 }
2364 2366
2365 } // namespace autofill 2367 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698