|
|
Created:
6 years, 2 months ago by Mike West Modified:
6 years, 2 months ago Reviewers:
vabr (Chromium) CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, gcasto+watchlist_chromium.org, jam, mkwst+watchlist_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Project:
chromium Visibility:
Public. |
DescriptionCredential Manager: Create a local or federated credential to hand to Blink.
BUG=400674
Committed: https://crrev.com/d55ad56342ec5928ee315351f542f147a01beb89
Cr-Commit-Position: refs/heads/master@{#297805}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Feedback. #Patch Set 3 : Ugh. #Patch Set 4 : break #
Messages
Total messages: 36 (17 generated)
mkwst@chromium.org changed reviewers: + vabr@chromium.org
One more on the pile. WDYT? I need to land a blink-side change before I can test the difference between WebLocalCredentials and WebFederatedCredentials when they're both passed as plain ol' WebCredential objects. -mike
On 2014/10/01 14:38:47, Mike West wrote: > One more on the pile. WDYT? > > I need to land a blink-side change before I can test the difference between > WebLocalCredentials and WebFederatedCredentials when they're both passed as > plain ol' WebCredential objects. Though such a test is pointless at the moment, as federated credentials are a big TODO on the Chromium side. :) We only generate local credentials.
LGTM with comments. Cheers, Vaclav https://codereview.chromium.org/621503005/diff/1/components/password_manager/... File components/password_manager/content/renderer/credential_manager_client.cc (right): https://codereview.chromium.org/621503005/diff/1/components/password_manager/... components/password_manager/content/renderer/credential_manager_client.cc:86: credential.reset(new blink::WebFederatedCredential(info.id, info.name, nit: Is this how clang-format would format the line? If not, could you please prefer clang-format (git cl format), to make future refactoring easier? Alternatively, there are deactivation comments // clang-format off special_formatting(); // clang-format on (see b/14285621) for places where the clang-format is really a bad choice. https://codereview.chromium.org/621503005/diff/1/components/password_manager/... components/password_manager/content/renderer/credential_manager_client.cc:93: default: Please change the "default:" to case CREDENTIAL_TYPE_UNKNOWN: This way the compiler will yell at anybody adding a new type without adding support for it as well. https://codereview.chromium.org/621503005/diff/1/components/password_manager/... components/password_manager/content/renderer/credential_manager_client.cc:97: DCHECK(credential); nit: This DCHECK seems a bit pointless, because the only way to reach it is by exhausting memory, when "new" returns NULL. But if you want to keep it for documentation purposes, I'm not too strongly against it.
https://codereview.chromium.org/621503005/diff/1/components/password_manager/... File components/password_manager/content/renderer/credential_manager_client.cc (right): https://codereview.chromium.org/621503005/diff/1/components/password_manager/... components/password_manager/content/renderer/credential_manager_client.cc:86: credential.reset(new blink::WebFederatedCredential(info.id, info.name, On 2014/10/01 16:05:23, vabr (Chromium) wrote: > nit: Is this how clang-format would format the line? If not, could you please > prefer clang-format (git cl format), to make future refactoring easier? > Alternatively, there are deactivation comments > // clang-format off > special_formatting(); > // clang-format on > (see b/14285621) for places where the clang-format is really a bad choice. Re-clang-formatted. Not sure what happened in the first patch. https://codereview.chromium.org/621503005/diff/1/components/password_manager/... components/password_manager/content/renderer/credential_manager_client.cc:93: default: On 2014/10/01 16:05:22, vabr (Chromium) wrote: > Please change the "default:" to > case CREDENTIAL_TYPE_UNKNOWN: > > This way the compiler will yell at anybody adding a new type without adding > support for it as well. Done. https://codereview.chromium.org/621503005/diff/1/components/password_manager/... components/password_manager/content/renderer/credential_manager_client.cc:97: DCHECK(credential); On 2014/10/01 16:05:22, vabr (Chromium) wrote: > nit: This DCHECK seems a bit pointless, because the only way to reach it is by > exhausting memory, when "new" returns NULL. > But if you want to keep it for documentation purposes, I'm not too strongly > against it. Done.
The CQ bit was checked by mkwst@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/621503005/20001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by mkwst@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/621503005/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...) win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by mkwst@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/621503005/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by mkwst@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/621503005/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by mkwst@chromium.org
The CQ bit was unchecked by mkwst@chromium.org
Patchset #5 (id:80001) has been deleted
The CQ bit was checked by mkwst@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/621503005/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromiu...)
The CQ bit was checked by mkwst@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/621503005/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by mkwst@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/621503005/60001
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 746fabc32ec69a1a52fa9a9260f11a569beb5caa
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/d55ad56342ec5928ee315351f542f147a01beb89 Cr-Commit-Position: refs/heads/master@{#297805} |