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

Issue 1087233002: Report the number of empty usernames without a nonempty pair. (Closed)

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

Description

Report the number of empty usernames without a nonempty pair. In the process of investigation of empty username occurences in the password manager, we suspect re-authentication forms to be a frequent cause. This metric will show us in how many cases this is not the cause. We interpret occurences of an empty and nonempty username pair on the same signon realm as a presence of both a first-time authentication and re-authentication form. We report the number of password forms with an empty username in the login database, for which there isn't another password form with a nonempty username on the same signon realm. Out of several possible approaches: a) SELECT ... WHERE NOT EXISTS b) SELECT DISTINCT ... FROM ... JOIN ... ON a.signon_realm=b.signon_realm c) SELECT DISTINCT ... FROM ... WHERE ... AND a.signon_realm=b.signon_realm d) SELECT, put into std::set<>, SELECT, iterate and search the set we implemented a), as manual testing on 1000 random samples seemed to be the fastest. BUG=456728 Committed: https://crrev.com/e8ca3576174bfa8d4c5ee594fd3f1d0dee62d9a3 Cr-Commit-Position: refs/heads/master@{#325451}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -2 lines) Patch
M components/password_manager/core/browser/login_database.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/login_database_unittest.cc View 1 3 chunks +19 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
msramek
Hi Vasilii and Balázs, could you PTAL? Thanks, Martin
5 years, 8 months ago (2015-04-15 14:49:56 UTC) #2
msramek
+ Ilya, as owner, PTAL.
5 years, 8 months ago (2015-04-15 14:55:01 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1087233002/1
5 years, 8 months ago (2015-04-15 15:24:57 UTC) #6
engedy
LGTM % minor comments, thanks! I suggest that we rephrase the description of the CL ...
5 years, 8 months ago (2015-04-15 15:29:26 UTC) #7
commit-bot: I haz the power
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/56530)
5 years, 8 months ago (2015-04-15 15:34:23 UTC) #9
vasilii
https://codereview.chromium.org/1087233002/diff/1/components/password_manager/core/browser/login_database.cc File components/password_manager/core/browser/login_database.cc (right): https://codereview.chromium.org/1087233002/diff/1/components/password_manager/core/browser/login_database.cc#newcode511 components/password_manager/core/browser/login_database.cc:511: "AND NOT EXISTS (SELECT * FROM logins b " ...
5 years, 8 months ago (2015-04-15 15:51:55 UTC) #10
Ilya Sherman
LGTM % nit: https://codereview.chromium.org/1087233002/diff/1/components/password_manager/core/browser/login_database.cc File components/password_manager/core/browser/login_database.cc (right): https://codereview.chromium.org/1087233002/diff/1/components/password_manager/core/browser/login_database.cc#newcode517 components/password_manager/core/browser/login_database.cc:517: "NotPairedWithNonempty", nit: Rather than splitting this ...
5 years, 8 months ago (2015-04-15 22:56:05 UTC) #11
msramek
https://codereview.chromium.org/1087233002/diff/1/components/password_manager/core/browser/login_database.cc File components/password_manager/core/browser/login_database.cc (right): https://codereview.chromium.org/1087233002/diff/1/components/password_manager/core/browser/login_database.cc#newcode511 components/password_manager/core/browser/login_database.cc:511: "AND NOT EXISTS (SELECT * FROM logins b " ...
5 years, 8 months ago (2015-04-16 14:34:27 UTC) #12
engedy
https://codereview.chromium.org/1087233002/diff/1/components/password_manager/core/browser/login_database_unittest.cc File components/password_manager/core/browser/login_database_unittest.cc (right): https://codereview.chromium.org/1087233002/diff/1/components/password_manager/core/browser/login_database_unittest.cc#newcode1063 components/password_manager/core/browser/login_database_unittest.cc:1063: EXPECT_EQ(AddChangeForForm(password_form), db().AddLogin(password_form)); On 2015/04/16 14:34:26, msramek wrote: > On ...
5 years, 8 months ago (2015-04-16 14:44:32 UTC) #13
vasilii
lgtm
5 years, 8 months ago (2015-04-16 14:57:02 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1087233002/20001
5 years, 8 months ago (2015-04-16 15:00:09 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-16 16:10:55 UTC) #18
commit-bot: I haz the power
5 years, 8 months ago (2015-04-16 16:11:50 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e8ca3576174bfa8d4c5ee594fd3f1d0dee62d9a3
Cr-Commit-Position: refs/heads/master@{#325451}

Powered by Google App Engine
This is Rietveld 408576698