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

Issue 879913004: Credential Management: Support zeroclick credential in 'request()'. (Closed)

Created:
5 years, 10 months ago by Mike West
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, gcasto+watchlist_chromium.org, jam, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Credential Management: Support zeroclick credential in 'request()'. If only a single credential is available, and zero-click behavior is enabled, then we don't need to ask the user for permission to present the credential in response to a website's call to `request()`. This patch implements that logic, walking through the local credentials for an origin in the password store, and returning zeroclick credentials without prompting. If no such credential is available, and the caller set 'zero_click_only', then we also won't prompt the user, and will simply return an empty credential. BUG=400674 Committed: https://crrev.com/5fdae3e42e19f605f65d9608eda189a31642dee4 Cr-Commit-Position: refs/heads/master@{#313885}

Patch Set 1 #

Patch Set 2 : Test. #

Total comments: 7

Patch Set 3 : rework #

Total comments: 3

Patch Set 4 : ASAN #

Total comments: 2

Patch Set 5 : Feedback #

Patch Set 6 : Oops. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -9 lines) Patch
M components/password_manager/content/browser/content_credential_manager_dispatcher_unittest.cc View 1 2 3 4 7 chunks +76 lines, -0 lines 0 comments Download
M components/password_manager/content/browser/credential_manager_dispatcher.cc View 1 2 3 4 5 4 chunks +21 lines, -9 lines 0 comments Download
M components/password_manager/core/browser/password_manager_client.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_client.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
Mike West
Vaclav, mind taking a look, since Vasilii isn't at his desk? :)
5 years, 10 months ago (2015-01-28 12:30:36 UTC) #2
vasilii
https://codereview.chromium.org/879913004/diff/20001/components/password_manager/content/browser/credential_manager_dispatcher.cc File components/password_manager/content/browser/credential_manager_dispatcher.cc (right): https://codereview.chromium.org/879913004/diff/20001/components/password_manager/content/browser/credential_manager_dispatcher.cc#newcode170 components/password_manager/content/browser/credential_manager_dispatcher.cc:170: if (form->is_zero_click && !multiple_zero_click) { AS we discussed, I'll ...
5 years, 10 months ago (2015-01-28 13:25:30 UTC) #3
vabr (Chromium)
This LGTM, although I expect you want to clarify Vasilii's comment with him first. https://codereview.chromium.org/879913004/diff/20001/components/password_manager/content/browser/content_credential_manager_dispatcher_unittest.cc ...
5 years, 10 months ago (2015-01-28 13:37:52 UTC) #4
Mike West
WDYT of this approach, Vasilii? https://codereview.chromium.org/879913004/diff/20001/components/password_manager/content/browser/credential_manager_dispatcher.cc File components/password_manager/content/browser/credential_manager_dispatcher.cc (right): https://codereview.chromium.org/879913004/diff/20001/components/password_manager/content/browser/credential_manager_dispatcher.cc#newcode170 components/password_manager/content/browser/credential_manager_dispatcher.cc:170: if (form->is_zero_click && !multiple_zero_click) ...
5 years, 10 months ago (2015-01-28 14:42:14 UTC) #5
vasilii
lgtm https://codereview.chromium.org/879913004/diff/60001/components/password_manager/content/browser/content_credential_manager_dispatcher_unittest.cc File components/password_manager/content/browser/content_credential_manager_dispatcher_unittest.cc (right): https://codereview.chromium.org/879913004/diff/60001/components/password_manager/content/browser/content_credential_manager_dispatcher_unittest.cc#newcode323 components/password_manager/content/browser/content_credential_manager_dispatcher_unittest.cc:323: CredentialManagerOnRequestCredentialWithZeroClickOnlyEmptyPasswordStore) { optional: the test names became too ...
5 years, 10 months ago (2015-01-28 16:14:59 UTC) #6
vasilii
It seems the description is obsolete.
5 years, 10 months ago (2015-01-28 16:16:17 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/879913004/80001
5 years, 10 months ago (2015-01-29 11:37:06 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel/builds/29975)
5 years, 10 months ago (2015-01-29 12:51:50 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/879913004/100001
5 years, 10 months ago (2015-01-30 08:20:33 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-01-30 09:09:09 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 09:10:08 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5fdae3e42e19f605f65d9608eda189a31642dee4
Cr-Commit-Position: refs/heads/master@{#313885}

Powered by Google App Engine
This is Rietveld 408576698