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

Issue 249153002: Rewrite functions from WebPasswordFormData and WebPasswordFormUtils in (Closed)

Created:
6 years, 8 months ago by ziran.sun
Modified:
6 years, 7 months ago
Reviewers:
Garrett Casto
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Rewrite functions from WebPasswordFormData and WebPasswordFormUtils in password_form_conversion_utils. There are Some old Blink code implemented in Webkit that predates the Chromium/WebKit API, specifically WebPasswordFormData and WebPasswordFormUtils. At this point the split just makes this code harder to update, as you need to wait for a Blink roll when adding a new element to autofill::PasswordForm. This patch is re-writing this code in components/autofill/content/renderer/password_form_conversion_util s to make it cleaner. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266438

Patch Set 1 : Initial commit. This has caused memory leak in linux-asan bot run. #

Patch Set 2 : Use smart pointer for memory handling #

Total comments: 3

Patch Set 3 : Update code as per review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -39 lines) Patch
M components/autofill/content/renderer/password_autofill_agent.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils.cc View 1 2 1 chunk +158 lines, -32 lines 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc View 3 chunks +73 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
ziran.sun
Previous commit has caused memory leak and been reverted - http://build.chromium.org/p/chromium.memory/builders/Linux%20ASan%20LSan%20Tests%20%281%29/builds/1584/steps/browser_tests/logs/EnsureNoFormSeenIfTooFewFields Added Fixes in. Please ...
6 years, 8 months ago (2014-04-23 17:34:04 UTC) #1
Garrett Casto
Thanks for fixing this. https://codereview.chromium.org/249153002/diff/20001/components/autofill/content/renderer/password_form_conversion_utils.cc File components/autofill/content/renderer/password_form_conversion_utils.cc (right): https://codereview.chromium.org/249153002/diff/20001/components/autofill/content/renderer/password_form_conversion_utils.cc#newcode167 components/autofill/content/renderer/password_form_conversion_utils.cc:167: bool InitPasswordFormFromWebFormElement( It doesn't seem ...
6 years, 8 months ago (2014-04-23 18:41:17 UTC) #2
ziran.sun
Code updated as per review comments. Please review. Thanks! https://codereview.chromium.org/249153002/diff/20001/components/autofill/content/renderer/password_form_conversion_utils.cc File components/autofill/content/renderer/password_form_conversion_utils.cc (right): https://codereview.chromium.org/249153002/diff/20001/components/autofill/content/renderer/password_form_conversion_utils.cc#newcode194 components/autofill/content/renderer/password_form_conversion_utils.cc:194: ...
6 years, 8 months ago (2014-04-24 10:24:20 UTC) #3
Garrett Casto
lgtm
6 years, 8 months ago (2014-04-24 19:11:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ziran.sun@samsung.com/249153002/40001
6 years, 8 months ago (2014-04-24 21:49:17 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 23:05:09 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-24 23:05:10 UTC) #7
ziran.sun
The CQ bit was checked by ziran.sun@samsung.com
6 years, 8 months ago (2014-04-25 12:56:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ziran.sun@samsung.com/249153002/40001
6 years, 8 months ago (2014-04-25 21:44:43 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 06:29:13 UTC) #10
ziran.sun
The CQ bit was checked by ziran.sun@samsung.com
6 years, 8 months ago (2014-04-27 16:46:54 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ziran.sun@samsung.com/249153002/40001
6 years, 8 months ago (2014-04-27 16:47:41 UTC) #13
commit-bot: I haz the power
6 years, 7 months ago (2014-04-28 06:03:10 UTC) #14
Message was sent while issue was closed.
Change committed as 266438

Powered by Google App Engine
This is Rietveld 408576698