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

Issue 688633004: Do not haul suggestions back to browser in AutofillHostMsg_ShowPasswordSuggestions (Closed)

Created:
6 years, 1 month ago by vabr (Chromium)
Modified:
6 years, 1 month ago
CC:
chromium-reviews, benquan, browser-components-watch_chromium.org, jam, darin-cc_chromium.org, Dane Wallinga, dyu1, mkwst+moarreviews-renderer_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Do not haul suggestions back to browser in AutofillHostMsg_ShowPasswordSuggestions Currently, PasswordAutofillAgent (in renderer) prepares password autofill suggestions for PasswordAutofillManager (in browser) and sends them via IPC. But the manager has the data to generate the suggestions itself, so this CL makes it derive the suggestions from that data instead of hauling it through IPC. This CL also adds one more test case to the PasswordAutofillManager unittest, to compensate for the coverage lost in the PasswordAutofillAgent browsertest by moving some logic out of the agent to the manager. BUG=400186, 377422, 118601 Committed: https://crrev.com/86cc798cc2947dd88aa73505d716f93538dffa5b Cr-Commit-Position: refs/heads/master@{#302245}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comments removed, iterator renamed #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -106 lines) Patch
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 5 chunks +16 lines, -41 lines 0 comments Download
M components/autofill/content/common/autofill_messages.h View 1 chunk +4 lines, -5 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 3 chunks +37 lines, -44 lines 0 comments Download
M components/password_manager/core/browser/password_autofill_manager.h View 1 chunk +4 lines, -5 lines 0 comments Download
M components/password_manager/core/browser/password_autofill_manager.cc View 1 2 chunks +56 lines, -4 lines 1 comment Download
M components/password_manager/core/browser/password_autofill_manager_unittest.cc View 3 chunks +75 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
vabr (Chromium)
Hi Garret, Could you please take a look at the whole CL? Hi Tom, Could ...
6 years, 1 month ago (2014-10-30 18:33:35 UTC) #2
Tom Sepez
Messages LGTM.
6 years, 1 month ago (2014-10-30 18:45:16 UTC) #3
Garrett Casto
LGTM Bug 118601 is also related here, looks like a dupe of 377422. We are ...
6 years, 1 month ago (2014-10-30 22:33:29 UTC) #4
vabr (Chromium)
Thanks Garrett and Tom for your quick reviews! More answers for Garrett:: On 2014/10/30 22:33:29, ...
6 years, 1 month ago (2014-10-31 08:53:56 UTC) #5
vabr (Chromium)
Comments addressed, sending to the CQ. https://codereview.chromium.org/688633004/diff/1/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/688633004/diff/1/components/autofill/content/renderer/password_autofill_agent.cc#newcode264 components/autofill/content/renderer/password_autofill_agent.cc:264: // No other ...
6 years, 1 month ago (2014-10-31 08:54:12 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/688633004/20001
6 years, 1 month ago (2014-10-31 08:55:05 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-10-31 09:36:14 UTC) #9
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/86cc798cc2947dd88aa73505d716f93538dffa5b Cr-Commit-Position: refs/heads/master@{#302245}
6 years, 1 month ago (2014-10-31 09:36:49 UTC) #10
jww
https://codereview.chromium.org/688633004/diff/20001/components/password_manager/core/browser/password_autofill_manager.cc File components/password_manager/core/browser/password_autofill_manager.cc (right): https://codereview.chromium.org/688633004/diff/20001/components/password_manager/core/browser/password_autofill_manager.cc#newcode124 components/password_manager/core/browser/password_autofill_manager.cc:124: if (!autofill::IsValidString16Vector(suggestions) || Drive by comment: Seems like this ...
6 years, 1 month ago (2014-11-01 01:10:04 UTC) #12
kareng
6 years, 1 month ago (2014-11-03 04:14:48 UTC) #13
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/695233002/ by kareng@google.com.

The reason for reverting is: caused crashers. see bug 429576.

Powered by Google App Engine
This is Rietveld 408576698