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

Issue 2864493003: Deprecate CredentialRequestOptions.unmediated in favor mediation enum (Closed)

Created:
3 years, 7 months ago by jdoerrie
Modified:
3 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, asvitkine+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-frames_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, gcasto+watchlist_chromium.org, haraken, jam, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, qsr+mojo_chromium.org, Srirama, vabr+watchlistpasswordmanager_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Deprecate CredentialRequestOptions.unmediated in favor mediation enum This change introduces an `CredentialMediationRequirement` enum argument to `CredentialsContainer::get()` that is intended to replace the currently existing boolean flag `unmediated`. The enum will have three states ("silent", "optional", "required") with "silent" and "optional" directly mapping to the existing boolean states, "required" is a novel option. Intent to Ship: https://groups.google.com/a/chromium.org/d/msg/blink-dev/veCKBk1NguM/ctyHrdVWAwAJ BUG=721399 Review-Url: https://codereview.chromium.org/2864493003 Cr-Commit-Position: refs/heads/master@{#473532} Committed: https://chromium.googlesource.com/chromium/src/+/46feffcdbeca2da9245a3c48ff6d81d08f26d5d8

Patch Set 1 #

Patch Set 2 : Fix Compilation #

Patch Set 3 : Add Tests #

Patch Set 4 : Fix compilation errors #

Patch Set 5 : Fix Windows Compilation Error #

Total comments: 29

Patch Set 6 : Addressed comments #

Patch Set 7 : Security Owners #

Total comments: 6

Patch Set 8 : kOptional, no RuntimeEnabled and Test #

Total comments: 4

Patch Set 9 : Setter and Warning #

Total comments: 4

Patch Set 10 : Test Comments #

Total comments: 8

Patch Set 11 : Nits and Tests #

Patch Set 12 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+461 lines, -139 lines) Patch
M components/password_manager/content/browser/credential_manager_impl.h View 1 2 3 4 5 3 chunks +3 lines, -1 line 0 comments Download
M components/password_manager/content/browser/credential_manager_impl.cc View 1 2 3 4 5 6 7 6 chunks +14 lines, -18 lines 0 comments Download
M components/password_manager/content/browser/credential_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 41 chunks +101 lines, -55 lines 0 comments Download
M components/password_manager/content/common/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/content/common/credential_manager.mojom View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download
M components/password_manager/content/common/credential_manager.typemap View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager/content/common/credential_manager_struct_traits.h View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M components/password_manager/content/common/credential_manager_struct_traits.cc View 1 2 3 4 5 6 7 1 chunk +39 lines, -0 lines 0 comments Download
M components/password_manager/content/renderer/credential_manager_client.h View 2 chunks +2 lines, -1 line 0 comments Download
M components/password_manager/content/renderer/credential_manager_client.cc View 1 2 3 4 5 6 7 3 chunks +18 lines, -2 lines 0 comments Download
M components/password_manager/content/renderer/credential_manager_client_browsertest.cc View 1 2 3 4 5 5 chunks +8 lines, -4 lines 0 comments Download
M components/password_manager/core/browser/credential_manager_logger.h View 1 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/credential_manager_logger.cc View 1 2 3 4 5 6 7 1 chunk +13 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/credential_manager_logger_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M components/password_manager/core/browser/credential_manager_pending_request_task.h View 1 2 3 4 5 4 chunks +4 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/credential_manager_pending_request_task.cc View 1 2 3 4 5 6 7 7 chunks +13 lines, -15 lines 0 comments Download
M components/password_manager/core/browser/password_manager_metrics_util.h View 1 2 3 4 5 3 chunks +3 lines, -8 lines 0 comments Download
M components/password_manager/core/browser/password_manager_metrics_util.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -6 lines 0 comments Download
M components/password_manager/core/common/credential_manager_types.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/test_runner/mock_credential_manager_client.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/shell/test_runner/mock_credential_manager_client.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/credential-management/idl.https.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-basics.html View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-errors.html View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-warnings.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-warnings-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Deprecation.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/credentialmanager/CredentialManagerClient.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/credentialmanager/CredentialManagerClient.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/credentialmanager/CredentialRequestOptions.idl View 1 2 3 4 5 6 7 8 9 10 1 chunk +18 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp View 1 2 3 4 5 6 7 8 9 10 4 chunks +42 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/credentialmanager/CredentialsContainerTest.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebCredentialManagerClient.h View 2 chunks +2 lines, -1 line 0 comments Download
A third_party/WebKit/public/platform/WebCredentialMediationRequirement.h View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +39 lines, -0 lines 0 comments Download

Messages

Total messages: 71 (50 generated)
jdoerrie
vasilii@chromium.org: Please review changes in //components/password_manager mkwst@chromium.org: Please review changes in the remaining files
3 years, 7 months ago (2017-05-18 06:29:54 UTC) #16
vasilii
https://codereview.chromium.org/2864493003/diff/80001/components/password_manager/content/browser/credential_manager_impl.cc File components/password_manager/content/browser/credential_manager_impl.cc (right): https://codereview.chromium.org/2864493003/diff/80001/components/password_manager/content/browser/credential_manager_impl.cc#newcode165 components/password_manager/content/browser/credential_manager_impl.cc:165: }(); Ideally it should go away. https://codereview.chromium.org/2864493003/diff/80001/components/password_manager/content/browser/credential_manager_impl.cc#newcode247 components/password_manager/content/browser/credential_manager_impl.cc:247: const ...
3 years, 7 months ago (2017-05-18 12:34:04 UTC) #25
jdoerrie
https://codereview.chromium.org/2864493003/diff/80001/components/password_manager/content/browser/credential_manager_impl.cc File components/password_manager/content/browser/credential_manager_impl.cc (right): https://codereview.chromium.org/2864493003/diff/80001/components/password_manager/content/browser/credential_manager_impl.cc#newcode165 components/password_manager/content/browser/credential_manager_impl.cc:165: }(); On 2017/05/18 12:34:03, vasilii(OOO til 18.05) wrote: > ...
3 years, 7 months ago (2017-05-18 14:57:25 UTC) #32
vasilii
https://codereview.chromium.org/2864493003/diff/80001/components/password_manager/content/browser/credential_manager_impl_unittest.cc File components/password_manager/content/browser/credential_manager_impl_unittest.cc (right): https://codereview.chromium.org/2864493003/diff/80001/components/password_manager/content/browser/credential_manager_impl_unittest.cc#newcode1633 components/password_manager/content/browser/credential_manager_impl_unittest.cc:1633: } On 2017/05/18 12:34:03, vasilii wrote: > There should ...
3 years, 7 months ago (2017-05-18 16:16:13 UTC) #35
vasilii
OPTIONAL is defined in minwindef.h(87)
3 years, 7 months ago (2017-05-18 17:00:27 UTC) #36
jdoerrie
Gentle ping at mkwst@chromium.org to review //third_party/WebKit and security relevant files: components/password_manager/content/common/credential_manager.mojom components/password_manager/content/common/credential_manager.typemap components/password_manager/content/common/credential_manager_struct_traits.h components/password_manager/content/common/credential_manager_struct_traits.cc ...
3 years, 7 months ago (2017-05-19 09:03:18 UTC) #40
Mike West
I think the approach in //third_party/WebKit is fine, but I'd like to see the conflict ...
3 years, 7 months ago (2017-05-19 09:42:36 UTC) #41
jdoerrie
https://codereview.chromium.org/2864493003/diff/140001/third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp File third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp (right): https://codereview.chromium.org/2864493003/diff/140001/third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp#newcode177 third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp:177: options.mediation() = "optional"; On 2017/05/19 09:42:35, Mike West wrote: ...
3 years, 7 months ago (2017-05-19 09:59:51 UTC) #42
Mike West
On 2017/05/19 at 09:59:51, jdoerrie wrote: > https://codereview.chromium.org/2864493003/diff/140001/third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp > File third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp (right): > > https://codereview.chromium.org/2864493003/diff/140001/third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp#newcode177 ...
3 years, 7 months ago (2017-05-19 11:09:51 UTC) #45
jdoerrie
On 2017/05/19 11:09:51, Mike West wrote: > On 2017/05/19 at 09:59:51, jdoerrie wrote: > > ...
3 years, 7 months ago (2017-05-19 11:53:26 UTC) #48
vasilii
https://codereview.chromium.org/2864493003/diff/160001/components/password_manager/content/browser/credential_manager_impl_unittest.cc File components/password_manager/content/browser/credential_manager_impl_unittest.cc (right): https://codereview.chromium.org/2864493003/diff/160001/components/password_manager/content/browser/credential_manager_impl_unittest.cc#newcode1506 components/password_manager/content/browser/credential_manager_impl_unittest.cc:1506: store_->AddLogin(form_); form_.skip_zero_click = true; https://codereview.chromium.org/2864493003/diff/160001/components/password_manager/content/browser/credential_manager_impl_unittest.cc#newcode1517 components/password_manager/content/browser/credential_manager_impl_unittest.cc:1517: EXPECT_CALL(*client_, NotifyUserAutoSigninPtr()).Times(testing::Exactly(0)); Put ...
3 years, 7 months ago (2017-05-19 12:05:09 UTC) #49
jdoerrie
https://codereview.chromium.org/2864493003/diff/160001/components/password_manager/content/browser/credential_manager_impl_unittest.cc File components/password_manager/content/browser/credential_manager_impl_unittest.cc (right): https://codereview.chromium.org/2864493003/diff/160001/components/password_manager/content/browser/credential_manager_impl_unittest.cc#newcode1506 components/password_manager/content/browser/credential_manager_impl_unittest.cc:1506: store_->AddLogin(form_); On 2017/05/19 12:05:08, vasilii wrote: > form_.skip_zero_click = ...
3 years, 7 months ago (2017-05-19 14:40:21 UTC) #52
Mike West
Thank you for sending in a fix for the bindings issue! That's great. Nits and ...
3 years, 7 months ago (2017-05-19 15:29:57 UTC) #53
jdoerrie
Thanks, Mike. Sorry for not letting you review the bindings fix in time, my finger ...
3 years, 7 months ago (2017-05-19 16:22:37 UTC) #56
vasilii
//components/password_manager LGTM
3 years, 7 months ago (2017-05-19 16:26:37 UTC) #57
Ilya Sherman
Metrics LGTM, thanks.
3 years, 7 months ago (2017-05-19 21:12:52 UTC) #60
Mike West
LGTM, thanks
3 years, 7 months ago (2017-05-20 20:50:12 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2864493003/220001
3 years, 7 months ago (2017-05-22 06:50:01 UTC) #64
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/220233)
3 years, 7 months ago (2017-05-22 08:21:16 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2864493003/220001
3 years, 7 months ago (2017-05-22 08:50:53 UTC) #68
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 09:38:04 UTC) #71
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/46feffcdbeca2da9245a3c48ff6d...

Powered by Google App Engine
This is Rietveld 408576698