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

Unified Diff: components/autofill/content/renderer/password_autofill_agent.cc

Issue 796493004: Remove FrameDetached and FrameWillClose listeners from AutofillAgent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix init order Created 5 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/content/renderer/password_autofill_agent.cc
diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc
index 364d936d25c3a531d82cdd44353da80904d66c59..34068a0ee9cd1270787722b2ab8fad12ab75f0e1 100644
--- a/components/autofill/content/renderer/password_autofill_agent.cc
+++ b/components/autofill/content/renderer/password_autofill_agent.cc
@@ -987,9 +987,8 @@ void PasswordAutofillAgent::DidStopLoading() {
did_stop_loading_ = true;
}
-void PasswordAutofillAgent::FrameDetached(blink::WebFrame* frame) {
- if (frame == render_frame()->GetWebFrame())
- FrameClosing();
+void PasswordAutofillAgent::FrameDetached() {
+ FrameClosing();
}
void PasswordAutofillAgent::WillSendSubmitEvent(
@@ -1379,9 +1378,4 @@ void PasswordAutofillAgent::LegacyPasswordAutofillAgent::
agent_->LegacyDidStartProvisionalLoad(navigated_frame);
}
-void PasswordAutofillAgent::LegacyPasswordAutofillAgent::FrameDetached(
- blink::WebFrame* frame) {
- agent_->FrameDetached(frame);
-}
-
} // namespace autofill
« no previous file with comments | « components/autofill/content/renderer/password_autofill_agent.h ('k') | components/autofill/core/browser/autofill_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698