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

Issue 262583007: Password manager internals page service: introduction (Closed)

Created:
6 years, 7 months ago by vabr (Chromium)
Modified:
6 years, 7 months ago
Reviewers:
Ilya Sherman, blundell
CC:
chromium-reviews
Visibility:
Public.

Description

Password manager internals page service: introduction Introduce a BrowserContextKeyedService to collect logs from the PasswordManagerClient instances, and distribute them to PasswordManagerInternalsUI instances for display. The service will also ensure that nothing is logged in Incognito profiles, and that logs are flushed as soon as no one is displaying them. Except for checking the incognito bit, the whole functionality is implemented in the LogRouter class inside the password_manager component, for easy code sharing across platforms. The service inherits from LogRouter, and adds nothing except for leveraging the BrowserContextKeyedServiceFactory framework to keep the functionality from OTR profiles. This CL only introduces the service, it does not put it to use (outside tests) yet. For that there will be another CL (https://codereview.chromium.org/269513003, but WIP, not fit for (re)viewing yet). Yet another CL deals with renaming PasswordManagerLogger to LogReceiver: https://codereview.chromium.org/264793010/ Design doc: https://docs.google.com/document/d/1ArDhTo0w-8tOPiTwqM1gG6ZGqODo8UTpXlJjjnCNK4s/edit?usp=sharing#heading=h.cqh4wuj8j4yl BUG=347927 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269686

Patch Set 1 : #

Patch Set 2 : Fix #include .cc -> .h #

Patch Set 3 : Add client registration, remove IsActive #

Total comments: 35

Patch Set 4 : Just rebased #

Patch Set 5 : Comments addressed #

Total comments: 22

Patch Set 6 : Just rebased #

Patch Set 7 : Further comments addressed #

Patch Set 8 : Just rebased #

Patch Set 9 : DCHECK in ProcessLog #

Total comments: 2

Patch Set 10 : Do not deal with a failed DCHECK #

Patch Set 11 : Just rebased #

Patch Set 12 : New code in //components/password_manager moved to password_manager namespace #

Patch Set 13 : Also tests use the right namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+439 lines, -3 lines) Patch
A chrome/browser/password_manager/password_manager_internals_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +79 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager.gypi View 1 2 3 4 5 6 7 5 chunks +8 lines, -0 lines 0 comments Download
M components/password_manager/content/browser/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A components/password_manager/content/browser/password_manager_internals_service_factory.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +43 lines, -0 lines 0 comments Download
A components/password_manager/content/browser/password_manager_internals_service_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +41 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A components/password_manager/core/browser/log_router.h View 1 2 3 4 5 6 7 8 1 chunk +68 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/log_router.cc View 1 2 3 4 5 6 7 8 9 1 chunk +59 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/log_router_unittest.cc View 1 2 3 4 5 6 1 chunk +96 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/password_manager_internals_service.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +38 lines, -0 lines 0 comments Download
A + components/password_manager/core/browser/password_manager_internals_service.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
vabr (Chromium)
Hi Ilya, Would you mind taking a look? (Note: this time I don't need you ...
6 years, 7 months ago (2014-05-02 11:23:22 UTC) #1
vabr (Chromium)
Sorry, Ilya, Actually please hold off with the review if you have not started yet. ...
6 years, 7 months ago (2014-05-02 12:33:08 UTC) #2
vabr (Chromium)
Hi Ilya, Patch set 3 is the one to look at: PTAL. Whenever I add ...
6 years, 7 months ago (2014-05-02 13:48:34 UTC) #3
vabr (Chromium)
https://codereview.chromium.org/262583007/diff/150001/chrome/browser/password_manager/password_manager_internals_service_unittest.cc File chrome/browser/password_manager/password_manager_internals_service_unittest.cc (right): https://codereview.chromium.org/262583007/diff/150001/chrome/browser/password_manager/password_manager_internals_service_unittest.cc#newcode35 chrome/browser/password_manager/password_manager_internals_service_unittest.cc:35: ->MarkBrowserContextLiveForTesting(context.get()); TODO(vabr): Need to put this inside #if !defined(NDEBUG) ...
6 years, 7 months ago (2014-05-02 15:33:10 UTC) #4
Ilya Sherman
https://codereview.chromium.org/262583007/diff/150001/chrome/browser/password_manager/password_manager_internals_service_factory.cc File chrome/browser/password_manager/password_manager_internals_service_factory.cc (right): https://codereview.chromium.org/262583007/diff/150001/chrome/browser/password_manager/password_manager_internals_service_factory.cc#newcode35 chrome/browser/password_manager/password_manager_internals_service_factory.cc:35: content::BrowserContext* /*context*/) const { nit: Please leave spaces next ...
6 years, 7 months ago (2014-05-02 23:38:38 UTC) #5
vabr (Chromium)
Hi Ilya, Thanks for your comments so far. I addressed them. Could you please take ...
6 years, 7 months ago (2014-05-06 13:16:30 UTC) #6
Ilya Sherman
LGTM with the remaining comments addressed. Thanks. https://codereview.chromium.org/262583007/diff/210001/chrome/browser/password_manager/password_manager_internals_service.h File chrome/browser/password_manager/password_manager_internals_service.h (right): https://codereview.chromium.org/262583007/diff/210001/chrome/browser/password_manager/password_manager_internals_service.h#newcode18 chrome/browser/password_manager/password_manager_internals_service.h:18: // them ...
6 years, 7 months ago (2014-05-07 00:28:39 UTC) #7
blundell
https://codereview.chromium.org/262583007/diff/210001/chrome/browser/password_manager/password_manager_internals_service.h File chrome/browser/password_manager/password_manager_internals_service.h (right): https://codereview.chromium.org/262583007/diff/210001/chrome/browser/password_manager/password_manager_internals_service.h#newcode31 chrome/browser/password_manager/password_manager_internals_service.h:31: static PasswordManagerInternalsService* Get(content::BrowserContext* context); This method will have to ...
6 years, 7 months ago (2014-05-07 09:05:14 UTC) #8
vabr (Chromium)
Thanks, Ilya and also Colin! Ilya, I addressed all your comments, but you might want ...
6 years, 7 months ago (2014-05-07 13:42:58 UTC) #9
Ilya Sherman
https://codereview.chromium.org/262583007/diff/210001/components/password_manager/core/browser/log_router.cc File components/password_manager/core/browser/log_router.cc (right): https://codereview.chromium.org/262583007/diff/210001/components/password_manager/core/browser/log_router.cc#newcode22 components/password_manager/core/browser/log_router.cc:22: CHECK(receivers_.might_have_observers()); On 2014/05/07 13:42:59, vabr (Chromium) wrote: > On ...
6 years, 7 months ago (2014-05-08 03:38:52 UTC) #10
vabr (Chromium)
Hi Ilya, I changed the CHECK to DCHECK (see the comment below). I also removed ...
6 years, 7 months ago (2014-05-08 17:41:53 UTC) #11
Ilya Sherman
https://codereview.chromium.org/262583007/diff/310001/components/password_manager/core/browser/log_router.cc File components/password_manager/core/browser/log_router.cc (right): https://codereview.chromium.org/262583007/diff/310001/components/password_manager/core/browser/log_router.cc#newcode44 components/password_manager/core/browser/log_router.cc:44: accumulated_logs_.clear(); There's a DCHECK above that asserts that this ...
6 years, 7 months ago (2014-05-08 17:48:38 UTC) #12
vabr (Chromium)
Hi Ilya, I have a couple of ways to deal with the case of accumulating ...
6 years, 7 months ago (2014-05-09 09:47:19 UTC) #13
vabr (Chromium)
One more edit: when moving the service and its factory to //components/password_manager, I forgot to ...
6 years, 7 months ago (2014-05-09 17:31:26 UTC) #14
Ilya Sherman
On 2014/05/09 09:47:19, vabr (Chromium) wrote: > Hi Ilya, > > I have a couple ...
6 years, 7 months ago (2014-05-09 22:10:47 UTC) #15
vabr (Chromium)
On 2014/05/09 22:10:47, Ilya Sherman wrote: > On 2014/05/09 09:47:19, vabr (Chromium) wrote: > > ...
6 years, 7 months ago (2014-05-10 14:38:29 UTC) #16
Ilya Sherman
On 2014/05/10 14:38:29, vabr (Chromium) wrote: > On 2014/05/09 22:10:47, Ilya Sherman wrote: > > ...
6 years, 7 months ago (2014-05-10 17:45:26 UTC) #17
vabr (Chromium)
The CQ bit was checked by vabr@chromium.org
6 years, 7 months ago (2014-05-10 19:56:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/262583007/390001
6 years, 7 months ago (2014-05-10 19:59:26 UTC) #19
commit-bot: I haz the power
6 years, 7 months ago (2014-05-11 01:48:42 UTC) #20
Message was sent while issue was closed.
Change committed as 269686

Powered by Google App Engine
This is Rietveld 408576698