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

Issue 228263004: Password manager internals page: Introduce logger in renderer (Closed)

Created:
6 years, 8 months ago by vabr (Chromium)
Modified:
6 years, 8 months ago
CC:
chromium-reviews, benquan, jam, browser-components-watch_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

Password manager internals page: Introduce logger in renderer A follow-up to https://codereview.chromium.org/216183008/ Password manager internals page serves as a debugging output from the process of observing submitted password forms and offering the user to save the password. The user will be able to grab the debugging info and pass it onto the Chrome developers to help investigate issues. This CL introduces: 1) RendererSavePasswordProgressLogger, a specialization of the SavePasswordProgressLogger for the renderer part of the password management code. 2) Additional support in the PasswordManagementClient to use the Logger in the renderer code. More context in the design doc: https://docs.google.com/document/d/1ArDhTo0w-8tOPiTwqM1gG6ZGqODo8UTpXlJjjnCNK4s/edit?usp=sharing A follow-up CL will introduce actual logging calls. TBR=inferno@chromium.org BUG=347927 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263002

Patch Set 1 : #

Patch Set 2 : Squash in little fixes #

Total comments: 22

Patch Set 3 : Most comments addressed + unrelated fixes removed #

Total comments: 2

Patch Set 4 : Comments addressed #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -20 lines) Patch
M chrome/browser/password_manager/chrome_password_manager_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/password_manager/chrome_password_manager_client.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/password_manager/chrome_password_manager_client_unittest.cc View 3 chunks +24 lines, -8 lines 0 comments Download
M components/autofill.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M components/autofill/content/common/autofill_messages.h View 1 2 1 chunk +4 lines, -0 lines 5 comments Download
A components/autofill/content/renderer/renderer_save_password_progress_logger.h View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
A components/autofill/content/renderer/renderer_save_password_progress_logger.cc View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A components/autofill/content/renderer/renderer_save_password_progress_logger_unittest.cc View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/content/browser/content_password_manager_driver.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_generation_manager_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_manager.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_client.h View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_manager_client.cc View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M components/password_manager/core/browser/stub_password_manager_client.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/stub_password_manager_client.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
vabr (Chromium)
Hi Ilya! Once you find time, please take a look at this follow-up CL to ...
6 years, 8 months ago (2014-04-09 14:28:34 UTC) #1
Ilya Sherman
On 2014/04/09 14:28:34, vabr (Chromium) wrote: > Patch set 2 adds two little fixes related ...
6 years, 8 months ago (2014-04-09 20:53:10 UTC) #2
Ilya Sherman
Really nice! Mostly just some nits: https://codereview.chromium.org/228263004/diff/110001/chrome/browser/password_manager/chrome_password_manager_client.cc File chrome/browser/password_manager/chrome_password_manager_client.cc (right): https://codereview.chromium.org/228263004/diff/110001/chrome/browser/password_manager/chrome_password_manager_client.cc#newcode186 chrome/browser/password_manager/chrome_password_manager_client.cc:186: bool ChromePasswordManagerClient::IsLoggingActive() const ...
6 years, 8 months ago (2014-04-09 21:10:07 UTC) #3
vabr (Chromium)
Thanks, Ilya! Sorry about squashing in the unrelated fixes, they are gone again (and in ...
6 years, 8 months ago (2014-04-10 08:51:24 UTC) #4
Ilya Sherman
LGTM with two final change requests addressed. Apologies for the small essay on const-correctness, but ...
6 years, 8 months ago (2014-04-10 09:23:07 UTC) #5
vabr (Chromium)
Colin, could you please take a look at components/components_tests.gyp? inferno@: could you please rubber-stamp components/autofill/content/common/autofill_messages.h? ...
6 years, 8 months ago (2014-04-10 12:15:41 UTC) #6
blundell
components_tests.gyp LGTM
6 years, 8 months ago (2014-04-10 13:15:56 UTC) #7
vabr (Chromium)
Thanks, Colin. TBR-ing inferno@ for components/autofill/content/common/autofill_messages.h (already reviewed by Ilya) and sending to CQ. Cheers, ...
6 years, 8 months ago (2014-04-10 13:33:30 UTC) #8
vabr (Chromium)
The CQ bit was checked by vabr@chromium.org
6 years, 8 months ago (2014-04-10 13:33:38 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/228263004/170001
6 years, 8 months ago (2014-04-10 13:33:48 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-10 15:33:56 UTC) #11
commit-bot: I haz the power
List of reviewers changed. tsepez@chromium.org did a drive-by without LGTM'ing!
6 years, 8 months ago (2014-04-10 15:33:56 UTC) #12
blundell
On 2014/04/10 15:33:56, I haz the power (commit-bot) wrote: > List of reviewers changed. mailto:tsepez@chromium.org ...
6 years, 8 months ago (2014-04-10 15:36:23 UTC) #13
vabr (Chromium)
On 2014/04/10 15:36:23, blundell wrote: > On 2014/04/10 15:33:56, I haz the power (commit-bot) wrote: ...
6 years, 8 months ago (2014-04-10 16:03:59 UTC) #14
vabr (Chromium)
The CQ bit was checked by vabr@chromium.org
6 years, 8 months ago (2014-04-10 16:04:10 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/228263004/170001
6 years, 8 months ago (2014-04-10 16:04:34 UTC) #16
commit-bot: I haz the power
Change committed as 263002
6 years, 8 months ago (2014-04-10 16:05:37 UTC) #17
Ilya Sherman
Václav, please don't TBR IPC message changes. There is a reason that the security team ...
6 years, 8 months ago (2014-04-10 18:19:41 UTC) #18
Tom Sepez
On 2014/04/10 18:19:41, Ilya Sherman wrote: > Václav, please don't TBR IPC message changes. There ...
6 years, 8 months ago (2014-04-10 19:11:13 UTC) #19
Tom Sepez
https://codereview.chromium.org/228263004/diff/170001/components/autofill/content/common/autofill_messages.h File components/autofill/content/common/autofill_messages.h (right): https://codereview.chromium.org/228263004/diff/170001/components/autofill/content/common/autofill_messages.h#newcode188 components/autofill/content/common/autofill_messages.h:188: // Notification that logs during saving the password have ...
6 years, 8 months ago (2014-04-10 19:16:42 UTC) #20
Tom Sepez
https://codereview.chromium.org/228263004/diff/170001/components/autofill/content/common/autofill_messages.h File components/autofill/content/common/autofill_messages.h (right): https://codereview.chromium.org/228263004/diff/170001/components/autofill/content/common/autofill_messages.h#newcode188 components/autofill/content/common/autofill_messages.h:188: // Notification that logs during saving the password have ...
6 years, 8 months ago (2014-04-10 19:20:57 UTC) #21
Ilya Sherman
https://codereview.chromium.org/228263004/diff/170001/components/autofill/content/common/autofill_messages.h File components/autofill/content/common/autofill_messages.h (right): https://codereview.chromium.org/228263004/diff/170001/components/autofill/content/common/autofill_messages.h#newcode188 components/autofill/content/common/autofill_messages.h:188: // Notification that logs during saving the password have ...
6 years, 8 months ago (2014-04-10 19:32:15 UTC) #22
Tom Sepez
> There are actually methods that build these strings from more structured data, > sanitizing ...
6 years, 8 months ago (2014-04-10 19:36:47 UTC) #23
vabr (Chromium)
I'm sorry about the TBR, it did not occur to me until after the commit, ...
6 years, 8 months ago (2014-04-10 19:37:05 UTC) #24
Tom Sepez
(hit send too soon). I guess my larger concern was that although your design doc ...
6 years, 8 months ago (2014-04-10 19:39:27 UTC) #25
vabr (Chromium)
On 2014/04/10 19:36:47, Tom Sepez wrote: > > There are actually methods that build these ...
6 years, 8 months ago (2014-04-10 19:40:33 UTC) #26
Tom Sepez
On 2014/04/10 19:40:33, vabr (Chromium) wrote: > On 2014/04/10 19:36:47, Tom Sepez wrote: > > ...
6 years, 8 months ago (2014-04-10 19:44:19 UTC) #27
Tom Sepez
In other words, we prefer "Its not possible to do that" to "we're never going ...
6 years, 8 months ago (2014-04-10 19:45:44 UTC) #28
vabr (Chromium)
On 2014/04/10 19:44:19, Tom Sepez wrote: > On 2014/04/10 19:40:33, vabr (Chromium) wrote: > > ...
6 years, 8 months ago (2014-04-10 19:53:55 UTC) #29
Tom Sepez
> Or I could put the compile-time messages in resources, and send only resource > ...
6 years, 8 months ago (2014-04-10 20:02:57 UTC) #30
vabr (Chromium)
On 2014/04/10 20:02:57, Tom Sepez wrote: > > Or I could put the compile-time messages ...
6 years, 8 months ago (2014-04-10 20:10:58 UTC) #31
Tom Sepez
Sounds good to me. thanks!
6 years, 8 months ago (2014-04-10 20:12:59 UTC) #32
blundell
https://codereview.chromium.org/228263004/diff/110001/components/password_manager/core/browser/password_manager_client.h File components/password_manager/core/browser/password_manager_client.h (right): https://codereview.chromium.org/228263004/diff/110001/components/password_manager/core/browser/password_manager_client.h#newcode72 components/password_manager/core/browser/password_manager_client.h:72: virtual bool IsLoggingActive() const; PasswordClient is already not a ...
6 years, 8 months ago (2014-04-11 14:39:15 UTC) #33
vabr (Chromium)
6 years, 8 months ago (2014-04-11 18:42:11 UTC) #34
Message was sent while issue was closed.
For everyone possibly following this: the new CL is
https://codereview.chromium.org/235623002/. Discussion is preferred there, this
Cl is already closed.

Thanks!
Vaclav

Powered by Google App Engine
This is Rietveld 408576698