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

Issue 488993003: Credential Manager: Migrate to WebView client-based approach. (Closed)

Created:
6 years, 4 months ago by Mike West
Modified:
6 years, 4 months ago
Reviewers:
pfeldman
CC:
blink-reviews, jamesr, dglazkov+blink, abarth-chromium, tkent
Project:
blink
Visibility:
Public.

Description

Credential Manager: Migrate to WebView client-based approach. In [1], jam@ suggested that we change the current approach of delivering the core credential manager implementation via a Platform API piped through //content. Instead, he proposed creating a client interface, and setting that directly on the WebView from ChromeContentRendererClient. This bypasses //content entirely, and makes the Chromium-side implementation cleaner. The Blink-side implementation gets a bit messier. In order to ensure that credential manager doesn't introduce changes to core, this patch introduces a new client interface in the module, and supplements Page in order to make this interface available to the module's bindings code. This is similar to the approach PrerendererClient has taken. [1]: https://codereview.chromium.org/464883002/#msg9 BUG=400674 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180648

Patch Set 1 #

Total comments: 2

Patch Set 2 : feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -52 lines) Patch
A Source/modules/credentialmanager/CredentialManagerClient.h View 1 chunk +46 lines, -0 lines 0 comments Download
A Source/modules/credentialmanager/CredentialManagerClient.cpp View 1 chunk +66 lines, -0 lines 0 comments Download
M Source/modules/credentialmanager/CredentialsContainer.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/modules.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 2 chunks +7 lines, -0 lines 0 comments Download
M public/platform/Platform.h View 2 chunks +0 lines, -5 lines 0 comments Download
D public/platform/WebCredentialManager.h View 1 chunk +0 lines, -34 lines 0 comments Download
A + public/platform/WebCredentialManagerClient.h View 1 1 chunk +11 lines, -10 lines 0 comments Download
M public/web/WebView.h View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Mike West
pfeldman: Do you have some time this morning to review a platform change? I hope ...
6 years, 4 months ago (2014-08-20 10:09:53 UTC) #1
pfeldman
lgtm
6 years, 4 months ago (2014-08-20 12:23:29 UTC) #2
pfeldman
https://codereview.chromium.org/488993003/diff/20001/public/platform/WebCredentialManagerClient.h File public/platform/WebCredentialManagerClient.h (right): https://codereview.chromium.org/488993003/diff/20001/public/platform/WebCredentialManagerClient.h#newcode27 public/platform/WebCredentialManagerClient.h:27: virtual void dispatchFailedSignIn(const WebCredential&, NotificationCallbacks*) = 0; Do you ...
6 years, 4 months ago (2014-08-20 12:23:43 UTC) #3
Mike West
Thanks! https://codereview.chromium.org/488993003/diff/20001/public/platform/WebCredentialManagerClient.h File public/platform/WebCredentialManagerClient.h (right): https://codereview.chromium.org/488993003/diff/20001/public/platform/WebCredentialManagerClient.h#newcode27 public/platform/WebCredentialManagerClient.h:27: virtual void dispatchFailedSignIn(const WebCredential&, NotificationCallbacks*) = 0; On ...
6 years, 4 months ago (2014-08-20 13:05:44 UTC) #4
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 4 months ago (2014-08-20 13:05:52 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/488993003/40001
6 years, 4 months ago (2014-08-20 13:06:44 UTC) #6
commit-bot: I haz the power
6 years, 4 months ago (2014-08-20 14:06:49 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (40001) as 180648

Powered by Google App Engine
This is Rietveld 408576698