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

Issue 331593008: Only consider PasswordFromManager which HasCompletedMatching when provisionally saving passwords (Closed)

Created:
6 years, 6 months ago by vabr (Chromium)
Modified:
6 years, 5 months ago
Reviewers:
engedy, Ilya Sherman
CC:
chromium-reviews, benquan, browser-components-watch_chromium.org, Dane Wallinga, dyu1, rouslan+autofillwatch_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, Ilya Sherman, mkwst+watchlist_chromium.org
Project:
chromium
Visibility:
Public.

Description

Only consider PasswordFromManager which HasCompletedMatching when provisionally saving passwords In PasswordManager::ProvisionallySavePassword, PasswordFormManager instances are sought, which could be managing the form being saved. Some of those managers may not be ready, because they still did not complete matching against the PasswordStore. There might also be more form managers suitable for the form being saved, with some having completed the matching, and some not. Currently, the code first finds the first suitable form manager, and then drops it if it has not completed matching. This ignores the fact that there might be a second choice form manager, which has completed matching. This happens currently on live.com (see the bug). This CL ignores form managers which did not complete matching when looking for a suitable form manager for the form being saved. This CL also improves a poorly phrased log message related to the situation when form managers have not completed matching. BUG=367768 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282935

Patch Set 1 #

Patch Set 2 : Just rebased #

Patch Set 3 : Test added #

Total comments: 26

Patch Set 4 : All comments but one addressed #

Total comments: 1

Patch Set 5 : Ilya's comment addressed #

Patch Set 6 : Rebased + switched the browser test to the new prompt testing #

Patch Set 7 : Added missing copyright notice in the JavaScript file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -52 lines) Patch
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/test/data/password/between_parsing_and_rendering.html View 1 2 3 1 chunk +2 lines, -39 lines 0 comments Download
A chrome/test/data/password/create_form_copy_on_submit.html View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/test/data/password/form_utils.js View 1 2 3 4 5 6 1 chunk +45 lines, -0 lines 0 comments Download
M components/autofill/core/common/save_password_progress_logger.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/common/save_password_progress_logger.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_manager.cc View 1 2 3 4 5 3 chunks +19 lines, -10 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
vabr (Chromium)
Balázs, Could you please review the whole CL? Ilya, Could you please review save_password_progress_logger.*? Thanks! ...
6 years, 5 months ago (2014-07-11 09:00:10 UTC) #1
engedy
LGTM with some minor comments. I must say that this is a very well tested ...
6 years, 5 months ago (2014-07-11 17:05:36 UTC) #2
vabr (Chromium)
Hi Balázs, Please take a look again, most of your comments were addressed. However, I ...
6 years, 5 months ago (2014-07-11 18:15:48 UTC) #3
engedy
https://codereview.chromium.org/331593008/diff/60001/chrome/test/data/password/create_form_copy_on_submit.html File chrome/test/data/password/create_form_copy_on_submit.html (right): https://codereview.chromium.org/331593008/diff/60001/chrome/test/data/password/create_form_copy_on_submit.html#newcode20 chrome/test/data/password/create_form_copy_on_submit.html:20: // Spin the message loop to let the deletion ...
6 years, 5 months ago (2014-07-11 18:26:11 UTC) #4
vabr (Chromium)
Thanks, Balázs, (Also for your initial review and whiteboard discussion we had about this.) Since ...
6 years, 5 months ago (2014-07-11 18:51:37 UTC) #5
engedy
On 2014/07/11 18:51:37, vabr (Chromium) wrote: > Thanks, Balázs, > (Also for your initial review ...
6 years, 5 months ago (2014-07-11 19:01:46 UTC) #6
Ilya Sherman
//components/autofill changes LGTM % a nit. Thanks, Václav! https://codereview.chromium.org/331593008/diff/80001/components/autofill/core/common/save_password_progress_logger.cc File components/autofill/core/common/save_password_progress_logger.cc (right): https://codereview.chromium.org/331593008/diff/80001/components/autofill/core/common/save_password_progress_logger.cc#newcode141 components/autofill/core/common/save_password_progress_logger.cc:141: return ...
6 years, 5 months ago (2014-07-11 23:47:02 UTC) #7
vabr (Chromium)
Thanks for review, Ilya, I addressed your comment in patch set 5. I also rebased ...
6 years, 5 months ago (2014-07-14 07:06:55 UTC) #8
vabr (Chromium)
The CQ bit was checked by vabr@chromium.org
6 years, 5 months ago (2014-07-14 07:59:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/331593008/120001
6 years, 5 months ago (2014-07-14 07:59:20 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-14 09:31:52 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-14 09:34:54 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/79709)
6 years, 5 months ago (2014-07-14 09:34:55 UTC) #13
vabr (Chromium)
Looks like I forgot to put a copyright message in the new JavaScript file, fixing ...
6 years, 5 months ago (2014-07-14 09:42:24 UTC) #14
vabr (Chromium)
The CQ bit was checked by vabr@chromium.org
6 years, 5 months ago (2014-07-14 09:42:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/331593008/140001
6 years, 5 months ago (2014-07-14 09:43:40 UTC) #16
commit-bot: I haz the power
6 years, 5 months ago (2014-07-14 12:33:34 UTC) #17
Message was sent while issue was closed.
Change committed as 282935

Powered by Google App Engine
This is Rietveld 408576698