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

Issue 14811010: Add metadata to content::PasswordForm to keep track of the password usage. (Closed)

Created:
7 years, 7 months ago by Garrett Casto
Modified:
7 years, 6 months ago
CC:
chromium-reviews, Raman Kakilate, benquan, ahutter, jam, dbeam+watch-autofill_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Albert Bodenhamer, Ilya Sherman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add metadata to content::PasswordForm to keep track of the password usage. The motivating force behind this change is we want to ping the first time a generated password is used. If we need to keep information about first use, we might as well keep total usage stats as it is an interesting UMA statistic as well. Changes to the other PasswordStore implementations will be in separate CLs BUG=240560 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202788

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comments #

Total comments: 1

Patch Set 3 : Fallthrough #

Patch Set 4 : fix failure #

Patch Set 5 : Merge #

Total comments: 2

Patch Set 6 : Fix Macro #

Patch Set 7 : Includes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -24 lines) Patch
M chrome/browser/password_manager/login_database.cc View 1 2 3 4 5 6 13 chunks +63 lines, -23 lines 0 comments Download
M chrome/browser/password_manager/password_form_manager.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/password_form.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/common/password_form.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
Garrett Casto
isherman@ - Overall change mdm@ - LoginDatabase changes joi@ - Content changes
7 years, 7 months ago (2013-05-14 06:07:32 UTC) #1
Ilya Sherman
LGTM https://codereview.chromium.org/14811010/diff/1/chrome/browser/password_manager/password_form_manager.cc File chrome/browser/password_manager/password_form_manager.cc (right): https://codereview.chromium.org/14811010/diff/1/chrome/browser/password_manager/password_form_manager.cc#newcode452 chrome/browser/password_manager/password_form_manager.cc:452: pending_credentials_.times_used++; nit: Please use the pre-increment operator rather ...
7 years, 7 months ago (2013-05-14 07:25:34 UTC) #2
Mike Mammarella
I haven't looked at the actual CL yet, but have you considered keeping a "last ...
7 years, 7 months ago (2013-05-14 09:45:56 UTC) #3
Jói
Is times_used_ opaque to code in //content or will there be follow-up changes where it ...
7 years, 7 months ago (2013-05-14 18:16:58 UTC) #4
Garrett Casto
On 2013/05/14 09:45:56, Mike Mammarella wrote: > I haven't looked at the actual CL yet, ...
7 years, 7 months ago (2013-05-14 20:09:55 UTC) #5
Garrett Casto
On 2013/05/14 18:16:58, Jói wrote: > Is times_used_ opaque to code in //content or will ...
7 years, 7 months ago (2013-05-14 20:10:24 UTC) #6
Garrett Casto
https://codereview.chromium.org/14811010/diff/1/chrome/browser/password_manager/password_form_manager.cc File chrome/browser/password_manager/password_form_manager.cc (right): https://codereview.chromium.org/14811010/diff/1/chrome/browser/password_manager/password_form_manager.cc#newcode452 chrome/browser/password_manager/password_form_manager.cc:452: pending_credentials_.times_used++; On 2013/05/14 07:25:34, Ilya Sherman wrote: > nit: ...
7 years, 7 months ago (2013-05-14 20:17:58 UTC) #7
Jói
LGTM Just to confirm, you don't need to update content::InitPasswordFormFromWebPasswordForm do you? It looks to ...
7 years, 7 months ago (2013-05-14 20:40:16 UTC) #8
Garrett Casto
On 2013/05/14 20:40:16, Jói wrote: > LGTM > > Just to confirm, you don't need ...
7 years, 7 months ago (2013-05-14 20:41:36 UTC) #9
Mike Mammarella
Still curious about my earlier question. https://codereview.chromium.org/14811010/diff/8001/chrome/browser/password_manager/login_database.cc File chrome/browser/password_manager/login_database.cc (right): https://codereview.chromium.org/14811010/diff/8001/chrome/browser/password_manager/login_database.cc#newcode110 chrome/browser/password_manager/login_database.cc:110: switch (current_version) { ...
7 years, 7 months ago (2013-05-15 00:08:14 UTC) #10
Garrett Casto
On 2013/05/15 00:08:14, Mike Mammarella wrote: > Still curious about my earlier question. > About ...
7 years, 7 months ago (2013-05-15 07:00:04 UTC) #11
Mike Mammarella
Huh, not sure how I missed your comment. OK. It occurs to me that I ...
7 years, 7 months ago (2013-05-15 21:36:08 UTC) #12
gcasto (DO NOT USE)
That is a good question. It looks like they have their own representation of a ...
7 years, 7 months ago (2013-05-15 22:06:04 UTC) #13
Garrett Casto
On 2013/05/15 22:06:04, gcasto wrote: > That is a good question. It looks like they ...
7 years, 7 months ago (2013-05-17 18:45:41 UTC) #14
Mike Mammarella
On 2013/05/17 18:45:41, Garrett Casto wrote: > I'm actually in the middle of re-naming one ...
7 years, 7 months ago (2013-05-18 21:43:07 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gcasto@chromium.org/14811010/59001
7 years, 6 months ago (2013-05-28 18:24:49 UTC) #16
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=5273
7 years, 6 months ago (2013-05-28 18:36:03 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gcasto@chromium.org/14811010/79001
7 years, 6 months ago (2013-05-28 19:38:52 UTC) #18
vadimb1
https://codereview.chromium.org/14811010/diff/79001/chrome/browser/password_manager/login_database.cc File chrome/browser/password_manager/login_database.cc (right): https://codereview.chromium.org/14811010/diff/79001/chrome/browser/password_manager/login_database.cc#newcode203 chrome/browser/password_manager/login_database.cc:203: base::StringPrintf("PasswordManager.Times%sPasswordUsed", Does this work if the histogram name changes ...
7 years, 6 months ago (2013-05-28 19:55:39 UTC) #19
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 6 months ago (2013-05-28 20:08:43 UTC) #20
Garrett Casto
https://codereview.chromium.org/14811010/diff/79001/chrome/browser/password_manager/login_database.cc File chrome/browser/password_manager/login_database.cc (right): https://codereview.chromium.org/14811010/diff/79001/chrome/browser/password_manager/login_database.cc#newcode203 chrome/browser/password_manager/login_database.cc:203: base::StringPrintf("PasswordManager.Times%sPasswordUsed", On 2013/05/28 19:55:39, vadimb1 wrote: > Does this ...
7 years, 6 months ago (2013-05-28 21:00:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gcasto@chromium.org/14811010/93001
7 years, 6 months ago (2013-05-28 21:08:08 UTC) #22
vadimb1
lgtm
7 years, 6 months ago (2013-05-28 21:41:37 UTC) #23
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=5385
7 years, 6 months ago (2013-05-28 21:51:48 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gcasto@chromium.org/14811010/93001
7 years, 6 months ago (2013-05-28 22:51:20 UTC) #25
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 06:51:58 UTC) #26
Message was sent while issue was closed.
Change committed as 202788

Powered by Google App Engine
This is Rietveld 408576698