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

Unified Diff: components/password_manager/core/browser/password_generation_manager.cc

Issue 2073143002: [Password Generation] Run the form classifier only if AutofillMetadata is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pg_classifier_votes
Patch Set: Removed unnecessary ';' Created 4 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 side-by-side diff with in-line comments
Download patch
Index: components/password_manager/core/browser/password_generation_manager.cc
diff --git a/components/password_manager/core/browser/password_generation_manager.cc b/components/password_manager/core/browser/password_generation_manager.cc
index 637abdeea1a0c563af43342d7c366b58c51f3cc5..d1b364127922e52a75cb1f0169154becc7a1fdaa 100644
--- a/components/password_manager/core/browser/password_generation_manager.cc
+++ b/components/password_manager/core/browser/password_generation_manager.cc
@@ -71,4 +71,9 @@ bool PasswordGenerationManager::IsGenerationEnabled() const {
return true;
}
+void PasswordGenerationManager::CheckIfFormClassifierShouldRun() {
+ if (autofill::FormStructure::IsAutofillFieldMetadataEnabled())
+ driver_->AllowToRunFormClassifier();
+}
+
} // namespace password_manager

Powered by Google App Engine
This is Rietveld 408576698