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

Issue 1260263002: Move ShouldFilterAutofillResult from ChromePasswordManagerClient to PasswordManager (Closed)

Created:
5 years, 4 months ago by vabr (Chromium)
Modified:
5 years, 4 months ago
CC:
chromium-reviews, gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org, vabr+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move ShouldFilterAutofillResult from ChromePasswordManagerClient to PasswordManager The goal is to put as much of the platform-independent logic to the shared code, and leave the CPMC just a dumb redirector to the embedding system. This is one of many steps. Also, this CL removes IsPasswordManagementEnabledForCurrentPage() from the client mock in the client unit test. It is dangerous to mix mocking methods with testing the real implementations, and none of the tests actually needs this method mocked. BUG=474577, 515108 Committed: https://crrev.com/5410d0bc855495b61ca084a8760d32613f684d01 Cr-Commit-Position: refs/heads/master@{#342332}

Patch Set 1 #

Patch Set 2 : Fix null dereferences #

Patch Set 3 : Just rebased #

Patch Set 4 : First version with sync layer, IsSyncCredential TODO still pending #

Total comments: 2

Patch Set 5 : Just rebased #

Patch Set 6 : Fix gypi #

Patch Set 7 : Just rebased #

Patch Set 8 : Mac fix #

Total comments: 22

Patch Set 9 : Just rebased #

Patch Set 10 : Comments addressed #

Patch Set 11 : Just rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+417 lines, -206 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/password_manager/chrome_password_manager_client.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +5 lines, -22 lines 0 comments Download
M chrome/browser/password_manager/chrome_password_manager_client.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +15 lines, -78 lines 0 comments Download
M chrome/browser/password_manager/chrome_password_manager_client_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +23 lines, -58 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M components/password_manager.gypi View 1 2 3 4 5 2 chunks +21 lines, -0 lines 0 comments Download
M components/password_manager/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M components/password_manager/README View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -7 lines 0 comments Download
M components/password_manager/core/browser/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M components/password_manager/core/browser/password_form_manager.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +7 lines, -5 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +21 lines, -16 lines 0 comments Download
M components/password_manager/core/browser/password_manager_client.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +9 lines, -8 lines 0 comments Download
M components/password_manager/core/browser/password_manager_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -3 lines 0 comments Download
A components/password_manager/core/browser/store_result_filter.h View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/stub_password_manager_client.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M components/password_manager/core/browser/stub_password_manager_client.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +23 lines, -5 lines 0 comments Download
A components/password_manager/sync/browser/BUILD.gn View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A + components/password_manager/sync/browser/DEPS View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
A components/password_manager/sync/browser/sync_store_result_filter.h View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
A components/password_manager/sync/browser/sync_store_result_filter.cc View 1 2 3 4 5 6 7 8 9 1 chunk +92 lines, -0 lines 0 comments Download
A components/password_manager/sync/browser/sync_store_result_filter_unittest.cc View 1 2 3 1 chunk +90 lines, -0 lines 0 comments Download
M ios/chrome/ios_chrome.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 44 (14 generated)
vabr (Chromium)
Hi Balázs, PTAL. Thanks! Vaclav
5 years, 4 months ago (2015-07-28 14:30:15 UTC) #2
vabr (Chromium)
The failures are real, I'm looking into fixing them. Sorry about that. Cheers, Vaclav
5 years, 4 months ago (2015-07-28 15:07:34 UTC) #3
vabr (Chromium)
I fixed the failed tests (at least locally).
5 years, 4 months ago (2015-07-28 15:29:27 UTC) #4
vabr (Chromium)
Hi Balázs, Just an update -- patch set 4 contains the sync layer. There is ...
5 years, 4 months ago (2015-07-29 15:16:20 UTC) #5
vabr (Chromium)
Note to myself: The iOS builder failure is gyp: Dependency '/b/build/slave/ios_rel_device_ninja/build/src/components/components.gyp:password_manager_sync_browser#target' not found while trying ...
5 years, 4 months ago (2015-07-29 15:50:58 UTC) #6
vabr (Chromium)
Hi Balázs, Please take a look. The CL is ready for review, except for 2 ...
5 years, 4 months ago (2015-07-31 14:07:17 UTC) #7
vabr (Chromium)
> (1) The failing Mac UI tests, which I'm fixing right now. This is similar ...
5 years, 4 months ago (2015-07-31 18:31:34 UTC) #8
engedy
Just one comment with substance: Would there be any alternatives to logging the statistics in ...
5 years, 4 months ago (2015-08-04 07:30:31 UTC) #9
vabr (Chromium)
Hi Balázs, On 2015/08/04 07:30:31, engedy wrote: > Just one comment with substance: Would there ...
5 years, 4 months ago (2015-08-04 07:52:47 UTC) #10
engedy
LGTM % comments. https://codereview.chromium.org/1260263002/diff/60001/components/password_manager/README File components/password_manager/README (left): https://codereview.chromium.org/1260263002/diff/60001/components/password_manager/README#oldcode2 components/password_manager/README:2: (https://sites.google.com/a/chromium.org/dev/developers/design-documents/layered-components-design) nit: We could keep the ...
5 years, 4 months ago (2015-08-04 10:11:29 UTC) #11
vabr (Chromium)
@jochen: Please review chrome/browser/BUILD.gn @stuartmorgan: Please review ios/chrome/ios_chrome.gyp. I won't land this until I have ...
5 years, 4 months ago (2015-08-04 12:21:25 UTC) #13
engedy
Still LGTM, thanks! https://codereview.chromium.org/1260263002/diff/140001/components/password_manager/core/browser/password_manager_client.h File components/password_manager/core/browser/password_manager_client.h (right): https://codereview.chromium.org/1260263002/diff/140001/components/password_manager/core/browser/password_manager_client.h#newcode169 components/password_manager/core/browser/password_manager_client.h:169: // Creates a single-use filter for ...
5 years, 4 months ago (2015-08-04 13:06:35 UTC) #14
vabr (Chromium)
https://codereview.chromium.org/1260263002/diff/140001/components/password_manager/sync/browser/sync_store_result_filter.cc File components/password_manager/sync/browser/sync_store_result_filter.cc (right): https://codereview.chromium.org/1260263002/diff/140001/components/password_manager/sync/browser/sync_store_result_filter.cc#newcode48 components/password_manager/sync/browser/sync_store_result_filter.cc:48: form.signon_realm)) On 2015/08/04 13:06:35, engedy wrote: > On 2015/08/04 ...
5 years, 4 months ago (2015-08-04 13:37:54 UTC) #15
jochen (gone - plz use gerrit)
c/b/BUILD.gn lgtm
5 years, 4 months ago (2015-08-04 13:50:01 UTC) #16
Roger Tawa OOO till Jul 10th
lgtm google_api deps
5 years, 4 months ago (2015-08-04 15:52:18 UTC) #17
vabr (Chromium)
Thanks all so far! @stuartmorgan: Please review/stamp ios/chrome/ios_chrome.gyp. The iOS internal part is internal CL ...
5 years, 4 months ago (2015-08-05 14:53:53 UTC) #18
stuartmorgan
lgtm
5 years, 4 months ago (2015-08-05 23:30:33 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260263002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260263002/180001
5 years, 4 months ago (2015-08-06 05:36:15 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/89524)
5 years, 4 months ago (2015-08-06 07:13:07 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260263002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260263002/180001
5 years, 4 months ago (2015-08-06 11:37:13 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/89638)
5 years, 4 months ago (2015-08-06 13:18:47 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260263002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260263002/180001
5 years, 4 months ago (2015-08-06 14:30:34 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/85695)
5 years, 4 months ago (2015-08-06 14:35:40 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260263002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260263002/200001
5 years, 4 months ago (2015-08-07 05:54:09 UTC) #33
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/87900)
5 years, 4 months ago (2015-08-07 07:19:19 UTC) #35
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260263002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260263002/200001
5 years, 4 months ago (2015-08-07 10:20:01 UTC) #37
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-07 10:24:30 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260263002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260263002/200001
5 years, 4 months ago (2015-08-07 10:56:32 UTC) #42
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 4 months ago (2015-08-07 11:02:11 UTC) #43
commit-bot: I haz the power
5 years, 4 months ago (2015-08-07 11:02:51 UTC) #44
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/5410d0bc855495b61ca084a8760d32613f684d01
Cr-Commit-Position: refs/heads/master@{#342332}

Powered by Google App Engine
This is Rietveld 408576698