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

Issue 2814773002: Move password-related methods from core.js to password_controller.js. (Closed)

Created:
3 years, 8 months ago by danyao
Modified:
3 years, 8 months ago
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, vabr+watchlistpasswordmanager_chromium.org, Eugene But (OOO till 7-30), pkl (ping after 24h if needed), ios-reviews+web_chromium.org, noyau+watch_chromium.org, ios-reviews_chromium.org, marq+watch_chromium.org, gcasto+watchlist_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move password-related methods from core.js to password_controller.js. The following methods are moved: - hasPasswordField: public API method in gCrWeb - hasPasswordField_: private implementation These methods are only used in password_controller.js. Unittests are also moved. BUG=614092 TEST=Passwords autofill works correctly Review-Url: https://codereview.chromium.org/2814773002 Cr-Commit-Position: refs/heads/master@{#463746} Committed: https://chromium.googlesource.com/chromium/src/+/2f7838f65b679f68aca8e1b0e3886442c6e74670

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed reviewer comments #

Patch Set 3 : Reupload after fixing upstream of this branch #

Patch Set 4 : Reupload after fixing BUILD.gn (need to remove deleted core_js_unittest.mm) #

Total comments: 4

Patch Set 5 : Fix sloppy mistakes (incomplete renaming and NSObject related error aftwer switching to BOOL) #

Patch Set 6 : Address reviewer comment (fix verb tense in test comment) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -96 lines) Patch
M ios/chrome/browser/passwords/password_controller_unittest.mm View 1 2 3 4 5 2 chunks +48 lines, -1 line 0 comments Download
M ios/chrome/browser/passwords/resources/password_controller.js View 1 2 3 4 1 chunk +42 lines, -1 line 0 comments Download
M ios/web/BUILD.gn View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
D ios/web/web_state/js/core_js_unittest.mm View 1 2 1 chunk +0 lines, -59 lines 0 comments Download
M ios/web/web_state/js/resources/core.js View 1 2 1 chunk +0 lines, -34 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (7 generated)
danyao
3 years, 8 months ago (2017-04-11 15:48:20 UTC) #2
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2814773002/diff/1/ios/chrome/browser/passwords/password_controller_unittest.mm File ios/chrome/browser/passwords/password_controller_unittest.mm (right): https://codereview.chromium.org/2814773002/diff/1/ios/chrome/browser/passwords/password_controller_unittest.mm#newcode752 ios/chrome/browser/passwords/password_controller_unittest.mm:752: struct TestDataForPasswordFormDetection { Could you please add comments to ...
3 years, 8 months ago (2017-04-11 16:19:41 UTC) #4
danyao
https://codereview.chromium.org/2814773002/diff/1/ios/chrome/browser/passwords/password_controller_unittest.mm File ios/chrome/browser/passwords/password_controller_unittest.mm (right): https://codereview.chromium.org/2814773002/diff/1/ios/chrome/browser/passwords/password_controller_unittest.mm#newcode752 ios/chrome/browser/passwords/password_controller_unittest.mm:752: struct TestDataForPasswordFormDetection { On 2017/04/11 16:19:40, Eugene But wrote: ...
3 years, 8 months ago (2017-04-11 18:05:06 UTC) #5
Eugene But (OOO till 7-30)
Thank you for cleanup! lgtm https://codereview.chromium.org/2814773002/diff/60001/ios/chrome/browser/passwords/password_controller_unittest.mm File ios/chrome/browser/passwords/password_controller_unittest.mm (right): https://codereview.chromium.org/2814773002/diff/60001/ios/chrome/browser/passwords/password_controller_unittest.mm#newcode758 ios/chrome/browser/passwords/password_controller_unittest.mm:758: // Test that the ...
3 years, 8 months ago (2017-04-11 18:20:20 UTC) #6
danyao
Thanks for the review! https://codereview.chromium.org/2814773002/diff/60001/ios/chrome/browser/passwords/password_controller_unittest.mm File ios/chrome/browser/passwords/password_controller_unittest.mm (right): https://codereview.chromium.org/2814773002/diff/60001/ios/chrome/browser/passwords/password_controller_unittest.mm#newcode758 ios/chrome/browser/passwords/password_controller_unittest.mm:758: // Test that the existence ...
3 years, 8 months ago (2017-04-11 18:52:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2814773002/100001
3 years, 8 months ago (2017-04-11 18:54:16 UTC) #10
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 20:19:26 UTC) #14
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/2f7838f65b679f68aca8e1b0e388...

Powered by Google App Engine
This is Rietveld 408576698