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

Issue 2899083004: Implement PasswordStore::GetLoginsForSameOrganizationName. (Closed)

Created:
3 years, 7 months ago by engedy
Modified:
3 years, 6 months ago
Reviewers:
vasilii, kolos1
CC:
chromium-reviews, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement PasswordStore::GetLoginsForSameOrganizationName. The method returns all stored credentials with SCHEME_HTTP that have an origin whose organization-identifying name -- that is, the first domain name label below the effective TLD -- matches that of a given origin. For example, the organization-identifying name of "https://foo.example.org" is `example`, and logins will be returned for "http://bar.example.co.uk", but not for "http://notexample.com" or "https://example.foo.com". BUG=720599 Review-Url: https://codereview.chromium.org/2899083004 Cr-Commit-Position: refs/heads/master@{#475322} Committed: https://chromium.googlesource.com/chromium/src/+/05971b1368780700908f226db1ff99837463abf1

Patch Set 1 #

Patch Set 2 : Polish. #

Patch Set 3 : Fix password_store_unittest.cc #

Patch Set 4 : Pacify Android/Win compilers. Add missing PwStore implementations on Mac. #

Total comments: 36

Patch Set 5 : Remove extra keyword in password_store_mac.cc #

Patch Set 6 : Rebase. #

Patch Set 7 : Rebase onto parent that actually passes tests. #

Patch Set 8 : Address comments from vasilii@. #

Patch Set 9 : Rebase. #

Patch Set 10 : Pacify compiler on Linux/Android. #

Patch Set 11 : Rebase. #

Total comments: 4

Patch Set 12 : Address round of comments from vasilii@. #

Patch Set 13 : Pacify MSVC++. #

Total comments: 20

Patch Set 14 : Address comments from kolos@ and vasilii@. #

Patch Set 15 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+505 lines, -18 lines) Patch
M chrome/browser/password_manager/password_store_mac.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_mac.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_proxy_mac.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_proxy_mac.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_x.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_x.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/login_database.h View 1 2 chunks +13 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/login_database.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +49 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/login_database_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +141 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/mock_password_store.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_store.h View 1 2 3 4 5 6 7 3 chunks +25 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_store.cc View 2 chunks +15 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_store_default.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_store_default.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_store_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +81 lines, -18 lines 0 comments Download
M components/password_manager/core/browser/psl_matching_helper.h View 1 chunk +5 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/psl_matching_helper.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/psl_matching_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +101 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/test_password_store.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/test_password_store.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 61 (49 generated)
engedy
Vasilii, please take a look. Less than 100 lines of production code changed, most of ...
3 years, 7 months ago (2017-05-24 12:56:33 UTC) #3
engedy
Looks like I'm hitting https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49132 on Android. Wouldn't it be nice if used something newer ...
3 years, 7 months ago (2017-05-24 13:33:55 UTC) #8
engedy
... and same on Windows. Should be fixed now.
3 years, 7 months ago (2017-05-24 13:59:55 UTC) #10
vasilii
Looks like the bots don't like you today :) https://codereview.chromium.org/2899083004/diff/60001/components/password_manager/core/browser/login_database.cc File components/password_manager/core/browser/login_database.cc (right): https://codereview.chromium.org/2899083004/diff/60001/components/password_manager/core/browser/login_database.cc#newcode1156 components/password_manager/core/browser/login_database.cc:1156: ...
3 years, 7 months ago (2017-05-24 17:48:39 UTC) #24
engedy
Thanks for the thorough review! Comments addressed % 4 questions below. @Maxim, there is also ...
3 years, 7 months ago (2017-05-24 19:27:13 UTC) #31
vasilii
I will have another full pass once addressed. https://codereview.chromium.org/2899083004/diff/60001/components/password_manager/core/browser/login_database_unittest.cc File components/password_manager/core/browser/login_database_unittest.cc (right): https://codereview.chromium.org/2899083004/diff/60001/components/password_manager/core/browser/login_database_unittest.cc#newcode822 components/password_manager/core/browser/login_database_unittest.cc:822: false}, ...
3 years, 7 months ago (2017-05-26 10:53:36 UTC) #40
engedy
Please take a final look. https://codereview.chromium.org/2899083004/diff/60001/components/password_manager/core/browser/login_database_unittest.cc File components/password_manager/core/browser/login_database_unittest.cc (right): https://codereview.chromium.org/2899083004/diff/60001/components/password_manager/core/browser/login_database_unittest.cc#newcode822 components/password_manager/core/browser/login_database_unittest.cc:822: false}, On 2017/05/26 10:53:36, ...
3 years, 7 months ago (2017-05-26 10:58:43 UTC) #42
vasilii
lgtm https://codereview.chromium.org/2899083004/diff/250001/components/password_manager/core/browser/login_database_unittest.cc File components/password_manager/core/browser/login_database_unittest.cc (right): https://codereview.chromium.org/2899083004/diff/250001/components/password_manager/core/browser/login_database_unittest.cc#newcode795 components/password_manager/core/browser/login_database_unittest.cc:795: const struct { constexpr https://codereview.chromium.org/2899083004/diff/250001/components/password_manager/core/browser/password_store_unittest.cc File components/password_manager/core/browser/password_store_unittest.cc (right): ...
3 years, 7 months ago (2017-05-26 12:47:55 UTC) #49
kolos1
LGTM. Thanks Balazs! https://codereview.chromium.org/2899083004/diff/250001/components/password_manager/core/browser/login_database.cc File components/password_manager/core/browser/login_database.cc (right): https://codereview.chromium.org/2899083004/diff/250001/components/password_manager/core/browser/login_database.cc#newcode1156 components/password_manager/core/browser/login_database.cc:1156: static constexpr char kRESchemeOrSubdomains[] = "^https?://([\\w+%-]+\\.)*"; ...
3 years, 7 months ago (2017-05-26 13:06:53 UTC) #52
engedy
Thank you both for the thorough review! https://codereview.chromium.org/2899083004/diff/250001/components/password_manager/core/browser/login_database.cc File components/password_manager/core/browser/login_database.cc (right): https://codereview.chromium.org/2899083004/diff/250001/components/password_manager/core/browser/login_database.cc#newcode1156 components/password_manager/core/browser/login_database.cc:1156: static constexpr ...
3 years, 6 months ago (2017-05-29 08:41:10 UTC) #55
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/2899083004/290001
3 years, 6 months ago (2017-05-29 08:48:10 UTC) #58
commit-bot: I haz the power
3 years, 6 months ago (2017-05-29 09:39:18 UTC) #61
Message was sent while issue was closed.
Committed patchset #15 (id:290001) as
https://chromium.googlesource.com/chromium/src/+/05971b1368780700908f226db1ff...

Powered by Google App Engine
This is Rietveld 408576698