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

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

Issue 2760653002: Add FormFetcher::RemoveConsumer (Closed)
Patch Set: Rebased Created 3 years, 9 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_form_manager.cc
diff --git a/components/password_manager/core/browser/password_form_manager.cc b/components/password_manager/core/browser/password_form_manager.cc
index 7839385ceae1d77af3058f11f96df2e1d3c9dff6..c34263fcd92857aa5e7be3e2f8168fa7ee4d1386 100644
--- a/components/password_manager/core/browser/password_form_manager.cc
+++ b/components/password_manager/core/browser/password_form_manager.cc
@@ -247,6 +247,8 @@ PasswordFormManager::PasswordFormManager(
}
PasswordFormManager::~PasswordFormManager() {
+ form_fetcher_->RemoveConsumer(this);
+
UMA_HISTOGRAM_ENUMERATION("PasswordManager.ActionsTakenV3", GetActionsTaken(),
kMaxNumActionsTaken);
// Use the visible main frame URL at the time the PasswordFormManager

Powered by Google App Engine
This is Rietveld 408576698