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

Issue 2721663002: Move Credentials when migrating to HSTS page (Closed)

Created:
3 years, 9 months ago by jdoerrie
Modified:
3 years, 9 months ago
Reviewers:
vasilii, Ilya Sherman
CC:
chromium-reviews, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_chromium.org, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move Credentials when migrating to HSTS page This change enables moving credentials during migration when the corresponding site has HSTS enabled. Prior to this change old HTTP credentials were kept, leading to unnecessary duplication. R=vasilii@chromium.org,isherman@chromium.org BUG=687968 Review-Url: https://codereview.chromium.org/2721663002 Cr-Commit-Position: refs/heads/master@{#456704} Committed: https://chromium.googlesource.com/chromium/src/+/5cda81b4d16e323763e51f22582a9144dc64c30e

Patch Set 1 #

Total comments: 7

Patch Set 2 : Add Browsertest #

Patch Set 3 : Query HSTS state asynchronously on IO Thread #

Patch Set 4 : Fix Browser Tests #

Patch Set 5 : Code Deduplication #

Total comments: 28

Patch Set 6 : Addressed comments. #

Patch Set 7 : Next Round #

Patch Set 8 : Missed a spot #

Total comments: 16

Patch Set 9 : Next Round. #

Total comments: 6

Patch Set 10 : Next Round #

Total comments: 4

Patch Set 11 : More Explanation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+452 lines, -138 lines) Patch
M chrome/browser/password_manager/chrome_password_manager_client.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/password_manager/chrome_password_manager_client.cc View 1 2 3 4 5 6 7 8 4 chunks +26 lines, -14 lines 0 comments Download
M chrome/browser/password_manager/credential_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +58 lines, -23 lines 0 comments Download
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +57 lines, -10 lines 0 comments Download
M chrome/browser/password_manager/password_manager_test_base.h View 1 2 3 4 5 6 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_manager_test_base.cc View 1 2 3 4 5 6 7 8 9 5 chunks +52 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/credential_manager_pending_request_task.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M components/password_manager/core/browser/form_fetcher_impl.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/http_password_migrator.h View 1 2 3 4 5 4 chunks +29 lines, -11 lines 0 comments Download
M components/password_manager/core/browser/http_password_migrator.cc View 1 2 3 4 5 4 chunks +56 lines, -13 lines 0 comments Download
M components/password_manager/core/browser/http_password_migrator_unittest.cc View 1 2 3 4 5 5 chunks +47 lines, -25 lines 0 comments Download
M components/password_manager/core/browser/obsolete_http_cleaner.cc View 1 2 4 chunks +35 lines, -19 lines 0 comments Download
M components/password_manager/core/browser/obsolete_http_cleaner_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +36 lines, -12 lines 0 comments Download
M components/password_manager/core/browser/password_manager_client.h View 1 2 3 4 5 2 chunks +6 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/password_manager_client.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_manager_metrics_util.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_metrics_util.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (36 generated)
jdoerrie
isherman@, please review histograms.xml. vasilii@, please review the rest. I will add browser tests before ...
3 years, 9 months ago (2017-02-27 18:33:12 UTC) #3
Ilya Sherman
Metrics LGTM % a nit: https://codereview.chromium.org/2721663002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2721663002/diff/1/tools/metrics/histograms/histograms.xml#newcode94724 tools/metrics/histograms/histograms.xml:94724: + <int value="1" label="HTTP ...
3 years, 9 months ago (2017-02-27 19:34:17 UTC) #6
vasilii
Looking forward to the test. https://codereview.chromium.org/2721663002/diff/1/components/password_manager/core/browser/form_fetcher_impl.cc File components/password_manager/core/browser/form_fetcher_impl.cc (right): https://codereview.chromium.org/2721663002/diff/1/components/password_manager/core/browser/form_fetcher_impl.cc#newcode113 components/password_manager/core/browser/form_fetcher_impl.cc:113: const auto migration_mode = ...
3 years, 9 months ago (2017-02-28 09:10:37 UTC) #7
jdoerrie
Hi Vasilii, please have another look :) https://codereview.chromium.org/2721663002/diff/1/components/password_manager/core/browser/form_fetcher_impl.cc File components/password_manager/core/browser/form_fetcher_impl.cc (right): https://codereview.chromium.org/2721663002/diff/1/components/password_manager/core/browser/form_fetcher_impl.cc#newcode113 components/password_manager/core/browser/form_fetcher_impl.cc:113: const auto ...
3 years, 9 months ago (2017-03-06 17:54:28 UTC) #10
vasilii
HttpPasswordMigrator should also support statistics removal. I'm fine with doing it in a separate CL. ...
3 years, 9 months ago (2017-03-08 13:31:16 UTC) #21
jdoerrie
Next round. I agree with supporting statistics removal in a follow-up CL. https://codereview.chromium.org/2721663002/diff/80001/chrome/browser/password_manager/credential_manager_browsertest.cc File chrome/browser/password_manager/credential_manager_browsertest.cc ...
3 years, 9 months ago (2017-03-09 18:35:50 UTC) #24
vasilii
https://codereview.chromium.org/2721663002/diff/80001/chrome/browser/password_manager/credential_manager_browsertest.cc File chrome/browser/password_manager/credential_manager_browsertest.cc (right): https://codereview.chromium.org/2721663002/diff/80001/chrome/browser/password_manager/credential_manager_browsertest.cc#newcode195 chrome/browser/password_manager/credential_manager_browsertest.cc:195: mock_cert_verifier().AddResultForCert(cert.get(), verify_result, net::OK); On 2017/03/09 18:35:49, jdoerrie wrote: > ...
3 years, 9 months ago (2017-03-10 10:21:01 UTC) #27
jdoerrie
Hi Vasilii, please have another look :) https://codereview.chromium.org/2721663002/diff/80001/chrome/browser/password_manager/credential_manager_browsertest.cc File chrome/browser/password_manager/credential_manager_browsertest.cc (right): https://codereview.chromium.org/2721663002/diff/80001/chrome/browser/password_manager/credential_manager_browsertest.cc#newcode195 chrome/browser/password_manager/credential_manager_browsertest.cc:195: mock_cert_verifier().AddResultForCert(cert.get(), verify_result, ...
3 years, 9 months ago (2017-03-10 13:53:10 UTC) #30
vasilii
I think you need to sync with the IO thread as well in your browser ...
3 years, 9 months ago (2017-03-10 15:37:43 UTC) #35
jdoerrie
https://codereview.chromium.org/2721663002/diff/140001/chrome/browser/password_manager/credential_manager_browsertest.cc File chrome/browser/password_manager/credential_manager_browsertest.cc (right): https://codereview.chromium.org/2721663002/diff/140001/chrome/browser/password_manager/credential_manager_browsertest.cc#newcode178 chrome/browser/password_manager/credential_manager_browsertest.cc:178: http_form.action = https_origin; On 2017/03/10 15:37:43, vasilii wrote: > ...
3 years, 9 months ago (2017-03-13 17:26:22 UTC) #38
vasilii
https://codereview.chromium.org/2721663002/diff/160001/chrome/browser/password_manager/credential_manager_browsertest.cc File chrome/browser/password_manager/credential_manager_browsertest.cc (right): https://codereview.chromium.org/2721663002/diff/160001/chrome/browser/password_manager/credential_manager_browsertest.cc#newcode203 chrome/browser/password_manager/credential_manager_browsertest.cc:203: See my comment on another test. https://codereview.chromium.org/2721663002/diff/160001/chrome/browser/password_manager/password_manager_browsertest.cc File chrome/browser/password_manager/password_manager_browsertest.cc ...
3 years, 9 months ago (2017-03-14 10:48:32 UTC) #41
jdoerrie
https://codereview.chromium.org/2721663002/diff/160001/chrome/browser/password_manager/credential_manager_browsertest.cc File chrome/browser/password_manager/credential_manager_browsertest.cc (right): https://codereview.chromium.org/2721663002/diff/160001/chrome/browser/password_manager/credential_manager_browsertest.cc#newcode203 chrome/browser/password_manager/credential_manager_browsertest.cc:203: On 2017/03/14 10:48:31, vasilii wrote: > See my comment ...
3 years, 9 months ago (2017-03-14 12:57:37 UTC) #44
vasilii
lgtm https://codereview.chromium.org/2721663002/diff/180001/chrome/browser/password_manager/credential_manager_browsertest.cc File chrome/browser/password_manager/credential_manager_browsertest.cc (right): https://codereview.chromium.org/2721663002/diff/180001/chrome/browser/password_manager/credential_manager_browsertest.cc#newcode204 chrome/browser/password_manager/credential_manager_browsertest.cc:204: // Sync with IO thread before continuing. The ...
3 years, 9 months ago (2017-03-14 13:13:22 UTC) #45
jdoerrie
https://codereview.chromium.org/2721663002/diff/180001/chrome/browser/password_manager/credential_manager_browsertest.cc File chrome/browser/password_manager/credential_manager_browsertest.cc (right): https://codereview.chromium.org/2721663002/diff/180001/chrome/browser/password_manager/credential_manager_browsertest.cc#newcode204 chrome/browser/password_manager/credential_manager_browsertest.cc:204: // Sync with IO thread before continuing. The actual ...
3 years, 9 months ago (2017-03-14 13:31:57 UTC) #46
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/2721663002/200001
3 years, 9 months ago (2017-03-14 13:32:25 UTC) #49
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 15:00:49 UTC) #52
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/5cda81b4d16e323763e51f22582a...

Powered by Google App Engine
This is Rietveld 408576698