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

Issue 796493004: Remove FrameDetached and FrameWillClose listeners from AutofillAgent. (Closed)

Created:
6 years ago by Evan Stade
Modified:
5 years, 11 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, jam, nasko+codewatch_chromium.org, browser-components-watch_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, rouslan+autofillwatch_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove FrameDetached and FrameWillClose listeners from AutofillAgent. AutofillAgent::FrameDetached is no longer necessary because form_cache_ only holds the forms for a single frame. AutofillAgent::FrameWillClose is only called on the actual closing frame (which might be a parent frame). AutofillAgent::FrameDetached can't take the place of AutofillAgent::FrameWillClose because the RenderFrame disables sending IPCs during detachment. Therefore, move the automatic closing of rAc from the renderer (autofill_agent.cc) to the browser (chrome_autofill_client.cc). For PasswordAutofillAgent, add FrameDetached to RenderFrameHost. BUG=433486 Committed: https://crrev.com/1dbe123c5e7b2d41e517049c1b98d8ad75563b98 Cr-Commit-Position: refs/heads/master@{#310162}

Patch Set 1 #

Patch Set 2 : finally fix browser test #

Patch Set 3 : remove debugging #

Total comments: 5

Patch Set 4 : add test and fix code #

Total comments: 3

Patch Set 5 : fix test compile #

Patch Set 6 : fix aw? #

Total comments: 2

Patch Set 7 : rebase #

Patch Set 8 : . #

Patch Set 9 : git screwup? #

Patch Set 10 : fix init order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -142 lines) Patch
M android_webview/native/aw_autofill_client.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M android_webview/native/aw_autofill_client.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +88 lines, -2 lines 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.h View 1 2 3 4 5 6 3 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.cc View 1 2 3 4 5 6 7 8 9 4 chunks +22 lines, -6 lines 0 comments Download
M chrome/renderer/autofill/autofill_renderer_browsertest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -45 lines 0 comments Download
M components/autofill/content/browser/content_autofill_driver.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M components/autofill/content/browser/request_autocomplete_manager.h View 2 chunks +3 lines, -7 lines 0 comments Download
M components/autofill/content/browser/request_autocomplete_manager.cc View 2 chunks +4 lines, -11 lines 0 comments Download
M components/autofill/content/browser/request_autocomplete_manager_unittest.cc View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
M components/autofill/content/common/autofill_messages.h View 1 2 3 4 5 6 1 chunk +2 lines, -7 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.h View 1 3 chunks +1 line, -5 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.cc View 1 6 chunks +1 line, -31 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.h View 1 2 3 4 5 6 3 chunks +1 line, -2 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -8 lines 0 comments Download
M components/autofill/core/browser/autofill_client.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/test_autofill_client.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/test_autofill_client.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/public/renderer/render_frame_observer.h View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (9 generated)
Evan Stade
+avi for content +cpalmer for ipc +dbeam for all else
6 years ago (2014-12-19 01:40:37 UTC) #2
Dan Beam
https://codereview.chromium.org/796493004/diff/40001/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://codereview.chromium.org/796493004/diff/40001/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode476 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:476: InitializeDOMMessageQueue(); nit: InitializeDomMessageQueue() (I'm pretty sure DOMMessageQueue should be ...
6 years ago (2014-12-19 01:59:34 UTC) #3
Avi (use Gerrit)
content lgtm
6 years ago (2014-12-19 04:44:18 UTC) #4
Evan Stade
https://codereview.chromium.org/796493004/diff/40001/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://codereview.chromium.org/796493004/diff/40001/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode1779 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:1779: On 2014/12/19 01:59:34, Dan Beam wrote: > nit: ^H ...
6 years ago (2014-12-19 21:21:12 UTC) #5
Evan Stade
+sgurun for AW
6 years ago (2014-12-20 00:26:40 UTC) #7
sgurun-gerrit only
On 2014/12/20 00:26:40, Evan Stade wrote: > +sgurun for AW aw lgtm
6 years ago (2014-12-20 00:59:44 UTC) #8
Dan Beam
https://codereview.chromium.org/796493004/diff/60001/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://codereview.chromium.org/796493004/diff/60001/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode1840 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:1840: std::string unused; lame https://code.google.com/p/chromium/codesearch#chromium/src/content/public/test/browser_test_utils.h&q=ExecuteScriptAndExtractString&sq=package:chromium&type=cs&l=167 https://codereview.chromium.org/796493004/diff/60001/chrome/browser/ui/autofill/chrome_autofill_client.cc File chrome/browser/ui/autofill/chrome_autofill_client.cc (right): https://codereview.chromium.org/796493004/diff/60001/chrome/browser/ui/autofill/chrome_autofill_client.cc#newcode229 ...
6 years ago (2014-12-20 01:10:51 UTC) #9
Dan Beam
lgtm https://codereview.chromium.org/796493004/diff/100001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (left): https://codereview.chromium.org/796493004/diff/100001/components/autofill/content/renderer/autofill_agent.cc#oldcode194 components/autofill/content/renderer/autofill_agent.cc:194: form_cache_.Reset(); On 2014/12/20 01:10:51, Dan Beam wrote: > ...
6 years ago (2014-12-20 01:13:27 UTC) #10
Evan Stade
ping cpalmer for ipc +jschuh in case cpalmer is ooo
6 years ago (2014-12-23 06:17:49 UTC) #12
jschuh
jschuh was out too. :( delayed lgtm for ipc security. notes: field and message removal
5 years, 11 months ago (2015-01-05 16:55:05 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/796493004/100001
5 years, 11 months ago (2015-01-05 18:11:28 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/33139)
5 years, 11 months ago (2015-01-05 18:18:01 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/796493004/120001
5 years, 11 months ago (2015-01-05 19:28:02 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/796493004/160001
5 years, 11 months ago (2015-01-05 19:38:41 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/30123)
5 years, 11 months ago (2015-01-05 19:53:40 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/796493004/180001
5 years, 11 months ago (2015-01-06 22:26:54 UTC) #25
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 11 months ago (2015-01-06 22:45:32 UTC) #26
commit-bot: I haz the power
5 years, 11 months ago (2015-01-06 22:46:34 UTC) #27
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/1dbe123c5e7b2d41e517049c1b98d8ad75563b98
Cr-Commit-Position: refs/heads/master@{#310162}

Powered by Google App Engine
This is Rietveld 408576698