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

Issue 597983003: Refactor PasswordAutofillAgent: methods to functions. (Closed)

Created:
6 years, 3 months ago by Deepak
Modified:
6 years, 2 months ago
CC:
chromium-reviews, benquan, browser-components-watch_chromium.org, jam, rouslan+autofillwatch_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, mkwst+moarreviews-renderer_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, Ilya Sherman, mkwst+watchlist_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Refactor PasswordAutofillAgent: methods to functions. The functions that are not using the member variables or just using few member variables are made helper function so that PasswordAutofillAgent class become thin and have relevent member functions only. BUG=398436 Committed: https://crrev.com/b7db6e91ad6f817fe62a3e29b3fdc2018d27fcec Cr-Commit-Position: refs/heads/master@{#297586}

Patch Set 1 #

Total comments: 19

Patch Set 2 : changes as per review comments. #

Total comments: 8

Patch Set 3 : Changes as per review comments. #

Patch Set 4 : Changes as per review comments. #

Total comments: 35

Patch Set 5 : changes as per review comments. #

Total comments: 17

Patch Set 6 : Changes as per review comments. #

Patch Set 7 : Changes as Per Review comments #

Patch Set 8 : Changes as per review comments. #

Patch Set 9 : Changes as per review comments. #

Patch Set 10 : Changes as per review comments. #

Total comments: 8

Patch Set 11 : changes as per new review comments. #

Patch Set 12 : nit changes. #

Total comments: 2

Patch Set 13 : Changes as per new comments. #

Total comments: 2

Patch Set 14 : nit changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -199 lines) Patch
M components/autofill/content/renderer/password_autofill_agent.h View 1 chunk +0 lines, -21 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 7 chunks +219 lines, -178 lines 0 comments Download

Messages

Total messages: 38 (4 generated)
Deepak
Attempt to slim down the definition of the PasswordAutofillAgent class by converting member functions to ...
6 years, 3 months ago (2014-09-24 15:28:32 UTC) #2
vabr (Chromium)
Hi Deepak, Thanks for your CL. I left a couple of comments, please have a ...
6 years, 2 months ago (2014-09-25 10:25:49 UTC) #3
Deepak
PTAL https://codereview.chromium.org/597983003/diff/1/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/597983003/diff/1/components/autofill/content/renderer/password_autofill_agent.cc#newcode221 components/autofill/content/renderer/password_autofill_agent.cc:221: bool FillUserNameAndPassword(struct ParametersNeedUpdate* param, On 2014/09/25 10:25:49, vabr ...
6 years, 2 months ago (2014-09-25 12:02:27 UTC) #4
tfarina
https://codereview.chromium.org/597983003/diff/1/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/597983003/diff/1/components/autofill/content/renderer/password_autofill_agent.cc#newcode1086 components/autofill/content/renderer/password_autofill_agent.cc:1086: struct ParametersNeedUpdate param; no 'struct' here as well. This ...
6 years, 2 months ago (2014-09-25 20:00:23 UTC) #5
Deepak
On 2014/09/25 20:00:23, tfarina wrote: > https://codereview.chromium.org/597983003/diff/1/components/autofill/content/renderer/password_autofill_agent.cc > File components/autofill/content/renderer/password_autofill_agent.cc (right): > > https://codereview.chromium.org/597983003/diff/1/components/autofill/content/renderer/password_autofill_agent.cc#newcode1086 > ...
6 years, 2 months ago (2014-09-26 03:07:19 UTC) #6
vabr (Chromium)
Hi Deepak, Please have a look at my comments below. Before addressing them though, you ...
6 years, 2 months ago (2014-09-26 10:06:48 UTC) #7
Deepak
Thanks a lot vabr for your time & guidance in review. yes, you are right, ...
6 years, 2 months ago (2014-09-26 12:33:52 UTC) #8
vabr (Chromium)
Hi Deepak, Please see my answers below. > https://codereview.chromium.org/597983003/diff/20001/components/autofill/content/renderer/password_autofill_agent.cc#newcode259 > > components/autofill/content/renderer/password_autofill_agent.cc:259: bool > > ...
6 years, 2 months ago (2014-09-26 12:56:07 UTC) #9
Deepak
On 2014/09/26 12:56:07, vabr (Chromium) wrote: > Hi Deepak, > > Please see my answers ...
6 years, 2 months ago (2014-09-26 15:10:30 UTC) #10
vabr (Chromium)
On 2014/09/26 15:10:30, Deepak wrote: > On 2014/09/26 12:56:07, vabr (Chromium) wrote: > > Hi ...
6 years, 2 months ago (2014-09-26 15:43:30 UTC) #11
Garrett Casto
As Vaclav mentioned, it's not clear to me that this refactoring is a net win. ...
6 years, 2 months ago (2014-09-26 18:31:28 UTC) #12
Deepak
On 2014/09/26 18:31:28, Garrett Casto wrote: > As Vaclav mentioned, it's not clear to me ...
6 years, 2 months ago (2014-09-29 02:42:14 UTC) #13
vabr (Chromium)
In a summary, I'd still recommend going ahead with this. Garrett, this is ultimately up ...
6 years, 2 months ago (2014-09-29 08:41:07 UTC) #14
Deepak
On 2014/09/29 08:41:07, vabr (Chromium) wrote: > In a summary, I'd still recommend going ahead ...
6 years, 2 months ago (2014-09-29 12:39:09 UTC) #15
Deepak
On 2014/09/29 08:41:07, vabr (Chromium) wrote: > In a summary, I'd still recommend going ahead ...
6 years, 2 months ago (2014-09-29 12:39:32 UTC) #16
vabr (Chromium)
On 2014/09/29 12:39:32, Deepak wrote: > On 2014/09/29 08:41:07, vabr (Chromium) wrote: > > In ...
6 years, 2 months ago (2014-09-29 13:06:29 UTC) #17
Deepak
On 2014/09/29 13:06:29, vabr (Chromium) wrote: > On 2014/09/29 12:39:32, Deepak wrote: > > On ...
6 years, 2 months ago (2014-09-29 15:01:07 UTC) #18
vabr (Chromium)
Thanks, Deepak! Your patch set 4 (https://codereview.chromium.org/597983003/#ps60001) LGTM, with some minor comments about the code ...
6 years, 2 months ago (2014-09-29 15:19:10 UTC) #19
Garrett Casto
LGTM after all comments are addressed. I still think that the benefits of the actual ...
6 years, 2 months ago (2014-09-30 00:16:41 UTC) #20
Deepak
Thanks vabr & Garrett for your time & guidance for enhancing my learning. I have ...
6 years, 2 months ago (2014-09-30 04:07:22 UTC) #21
vabr (Chromium)
Hi Deepak, Thanks for your work. Please find some more comments from me below. You ...
6 years, 2 months ago (2014-09-30 08:19:42 UTC) #22
Deepak
PTAL https://codereview.chromium.org/597983003/diff/80001/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/597983003/diff/80001/components/autofill/content/renderer/password_autofill_agent.cc#newcode269 components/autofill/content/renderer/password_autofill_agent.cc:269: // This function attempts to set |username_element| and ...
6 years, 2 months ago (2014-09-30 11:54:57 UTC) #23
vabr (Chromium)
Hi Deepak, Another round of comments below. Cheers, Vaclav https://codereview.chromium.org/597983003/diff/80001/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/597983003/diff/80001/components/autofill/content/renderer/password_autofill_agent.cc#newcode367 components/autofill/content/renderer/password_autofill_agent.cc:367: ...
6 years, 2 months ago (2014-09-30 12:25:55 UTC) #24
Deepak
PTAL https://codereview.chromium.org/597983003/diff/180001/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/597983003/diff/180001/components/autofill/content/renderer/password_autofill_agent.cc#newcode229 components/autofill/content/renderer/password_autofill_agent.cc:229: // |fill_data| based on |input| that is current_username. ...
6 years, 2 months ago (2014-09-30 13:17:20 UTC) #25
vabr (Chromium)
Hi Deepak, I found two earlier comments which were not completely addressed. Please have a ...
6 years, 2 months ago (2014-09-30 13:54:54 UTC) #26
Deepak
On 2014/09/30 13:54:54, vabr (Chromium) wrote: > Hi Deepak, > > I found two earlier ...
6 years, 2 months ago (2014-09-30 14:19:20 UTC) #27
Deepak
PTAL https://codereview.chromium.org/597983003/diff/220001/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/597983003/diff/220001/components/autofill/content/renderer/password_autofill_agent.cc#newcode229 components/autofill/content/renderer/password_autofill_agent.cc:229: // based on |input| that is current_username. Returns ...
6 years, 2 months ago (2014-09-30 14:19:48 UTC) #28
vabr (Chromium)
Thank you, Deepak, LGTM. I left one last comment, but that's just line breaking, and ...
6 years, 2 months ago (2014-09-30 14:46:45 UTC) #29
Deepak
Changes done. It is a good learning experience for me, as I get more familiar ...
6 years, 2 months ago (2014-09-30 15:01:37 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/597983003/260001
6 years, 2 months ago (2014-09-30 15:02:41 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/20322)
6 years, 2 months ago (2014-09-30 15:15:44 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/597983003/260001
6 years, 2 months ago (2014-10-01 02:39:27 UTC) #36
commit-bot: I haz the power
Committed patchset #14 (id:260001) as bc4f96366314d7287fc4071c025767c63de726f8
6 years, 2 months ago (2014-10-01 02:45:54 UTC) #37
commit-bot: I haz the power
6 years, 2 months ago (2014-10-01 02:46:39 UTC) #38
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/b7db6e91ad6f817fe62a3e29b3fdc2018d27fcec
Cr-Commit-Position: refs/heads/master@{#297586}

Powered by Google App Engine
This is Rietveld 408576698