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

Issue 464883002: Credential Manager: Renderer-side implementation. (Closed)

Created:
6 years, 4 months ago by Mike West
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, gcasto+watchlist_chromium.org, jam, mkwst+watchlist_chromium.org
Project:
chromium
Visibility:
Public.

Description

Credential Manager: Renderer-side implementation. This patch does three things: 1. Implements the Blink platform interface WebCredentialManagerClient by adding a CredentialManagerClient class to the password manager component. 2. Wires that implementation up to Blink's platform layer by creating an instance of the new client, held in ChromeContentRendererClient, and setting it as each new RenderView's client. 3. Stubs out IPCs for the renderer to pass messages up to the browser in order to do the heavy lifting of actually answering Blink's requests by generating and delivering Credential objects. BUG=400674 TBR=tkent@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291390

Patch Set 1 #

Total comments: 20

Patch Set 2 : GenerateRoutingID iOS. #

Patch Set 3 : Style. #

Total comments: 82

Patch Set 4 : Feedback. #

Total comments: 16

Patch Set 5 : Feedback2. #

Patch Set 6 : Fixing debug. #

Total comments: 21

Patch Set 7 : Feedback3. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+947 lines, -5 lines) Patch
M chrome/chrome_common.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 4 chunks +8 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M components/password_manager.gypi View 1 2 3 1 chunk +68 lines, -5 lines 0 comments Download
A components/password_manager/content/common/BUILD.gn View 1 1 chunk +21 lines, -0 lines 0 comments Download
A components/password_manager/content/common/DEPS View 1 1 chunk +4 lines, -0 lines 0 comments Download
A components/password_manager/content/common/OWNERS View 1 chunk +12 lines, -0 lines 0 comments Download
A components/password_manager/content/common/credential_manager_message_generator.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
A components/password_manager/content/common/credential_manager_message_generator.cc View 1 1 chunk +33 lines, -0 lines 0 comments Download
A components/password_manager/content/common/credential_manager_messages.h View 1 2 3 4 5 6 1 chunk +93 lines, -0 lines 0 comments Download
A components/password_manager/content/common/credential_manager_types.h View 1 2 3 1 chunk +59 lines, -0 lines 0 comments Download
A components/password_manager/content/common/credential_manager_types.cc View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
A components/password_manager/content/renderer/BUILD.gn View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A components/password_manager/content/renderer/DEPS View 1 1 chunk +7 lines, -0 lines 0 comments Download
A components/password_manager/content/renderer/credential_manager_client.h View 1 2 3 4 1 chunk +114 lines, -0 lines 0 comments Download
A components/password_manager/content/renderer/credential_manager_client.cc View 1 2 3 4 5 6 1 chunk +173 lines, -0 lines 0 comments Download
A components/password_manager/content/renderer/credential_manager_client_unittest.cc View 1 2 3 4 5 6 1 chunk +215 lines, -0 lines 0 comments Download
A components/password_manager/content/renderer/test_credential_manager_client.h View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A components/password_manager/content/renderer/test_credential_manager_client.cc View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M ipc/ipc_message_start.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Mike West
Ilya, would you mind skimming this WIP patch? Obviously, it's nowhere near ready to land, ...
6 years, 4 months ago (2014-08-13 18:46:44 UTC) #1
Mike West
(Also, I'm OOO until Monday, so no rush on this at all; I'd just like ...
6 years, 4 months ago (2014-08-13 18:49:15 UTC) #2
Ilya Sherman
Looks pretty reasonable. Thanks :) I realize that this is a WIP, and that a ...
6 years, 4 months ago (2014-08-15 20:42:38 UTC) #3
Mike West
Thanks Ilya, would you mind taking a closer look at this pass? -mike https://codereview.chromium.org/464883002/diff/1/components/password_manager/content/common/credential_manager_messages.h File ...
6 years, 4 months ago (2014-08-19 08:37:15 UTC) #4
Mike West
palmer@: Do you have some time to review the IPC additions in this patch? -mike
6 years, 4 months ago (2014-08-19 11:05:24 UTC) #5
Mike West
jam@: Would you mind taking a look at content/public/renderer/, content/renderer/, chrome/common, and chrome/renderer/ changes? They're ...
6 years, 4 months ago (2014-08-19 14:10:02 UTC) #6
Mike West
Actually adding jam@ this time: jam@: Would you mind taking a look at content/public/renderer/, content/renderer/, ...
6 years, 4 months ago (2014-08-19 14:10:40 UTC) #7
palmer
LGTM but note policy enforcement concern which you can handle in the browser-side implementation (a ...
6 years, 4 months ago (2014-08-19 18:28:44 UTC) #8
jam
https://codereview.chromium.org/464883002/diff/160001/content/renderer/renderer_webkitplatformsupport_impl.cc File content/renderer/renderer_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/464883002/diff/160001/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode877 content/renderer/renderer_webkitplatformsupport_impl.cc:877: return GetContentClient()->renderer()->GetCredentialManager(); the pattern we had used for the ...
6 years, 4 months ago (2014-08-19 19:55:31 UTC) #9
Ilya Sherman
nits! (mostly) https://codereview.chromium.org/464883002/diff/160001/chrome/chrome_common.gypi File chrome/chrome_common.gypi (right): https://codereview.chromium.org/464883002/diff/160001/chrome/chrome_common.gypi#newcode371 chrome/chrome_common.gypi:371: '<(DEPTH)/components/components.gyp:password_manager_core_common', Hmm, if iOS already doesn't use ...
6 years, 4 months ago (2014-08-19 23:55:54 UTC) #10
vabr (Chromium)
Thanks, Mike. Just a handful of comments, since Ilya seems to have done a thorough ...
6 years, 4 months ago (2014-08-20 10:57:48 UTC) #11
Mike West
Thanks to all four of you. The latest patchset hopefully addresses your concerns. Would you ...
6 years, 4 months ago (2014-08-20 13:17:20 UTC) #12
vabr (Chromium)
Thanks, Mike. Still LGTM, although with one more comment. Cheers, Vaclav https://codereview.chromium.org/464883002/diff/160001/chrome/chrome_common.gypi File chrome/chrome_common.gypi (right): ...
6 years, 4 months ago (2014-08-20 14:40:34 UTC) #13
Ilya Sherman
FWIW, I kind of liked "dispatcher", though I guess "client" is good too. The other ...
6 years, 4 months ago (2014-08-21 00:11:21 UTC) #14
Mike West
Thanks for your comments, Ilya. I've removed the injection of the TestCredentialManagerClient in favor of ...
6 years, 4 months ago (2014-08-21 10:20:47 UTC) #15
jam
lgtm Ideally the blink side would be per WebFrame instead of WebView. As part of ...
6 years, 4 months ago (2014-08-21 17:29:32 UTC) #16
Ilya Sherman
Thanks, Mike! LGTM % a few remaining nits (and one request for a change to ...
6 years, 4 months ago (2014-08-21 17:58:16 UTC) #17
Mike West
jam: Thanks! I'll move the code to WebFrame in a subsequent patch. I'd like to ...
6 years, 4 months ago (2014-08-22 09:03:16 UTC) #18
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 4 months ago (2014-08-22 09:03:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/464883002/260001
6 years, 4 months ago (2014-08-22 09:04:42 UTC) #20
Mike West
The CQ bit was unchecked by mkwst@chromium.org
6 years, 4 months ago (2014-08-22 09:43:57 UTC) #21
Mike West
TBRing tkent for the DEPS additions of 'third_party/WebKit/public/platform', 'third_party/WebKit/public/web'. Since he approved the Blink-side additions, ...
6 years, 4 months ago (2014-08-22 09:45:12 UTC) #22
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 4 months ago (2014-08-22 09:45:22 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/464883002/260001
6 years, 4 months ago (2014-08-22 09:45:54 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 09:59:03 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-22 10:52:27 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/1373)
6 years, 4 months ago (2014-08-22 10:52:29 UTC) #27
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 4 months ago (2014-08-22 10:57:10 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/464883002/260001
6 years, 4 months ago (2014-08-22 10:57:59 UTC) #29
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 12:01:32 UTC) #30
commit-bot: I haz the power
Committed patchset #7 (260001) as 291390
6 years, 4 months ago (2014-08-22 12:56:53 UTC) #31
tkent
6 years, 4 months ago (2014-08-24 23:47:51 UTC) #32
Message was sent while issue was closed.
On 2014/08/22 09:45:12, Mike West (OOO until Sept 1) wrote:
> TBRing tkent for the DEPS additions of 'third_party/WebKit/public/platform',
> 'third_party/WebKit/public/web'. Since he approved the Blink-side additions, I
> hope that it's not too presumptuous to assume he'll approve the use of those
new
> interfaces. :)

lgtm though I don't own the DEPS file.

Powered by Google App Engine
This is Rietveld 408576698