Commit 5db2d14d authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Commit Bot

Fix use-after-move in blink/renderer/modules/credentialmanager/

Fix use-after-move (potential) bugs found by the
"bugprone-use-after-move" clang-tidy check.

Bug: 1122844
Change-Id: If031db85723d9f2301446cfc3a351f1119dcf3bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2431488
Commit-Queue: Martin Kreichgauer <martinkr@google.com>
Reviewed-by: default avatarMartin Kreichgauer <martinkr@google.com>
Cr-Commit-Position: refs/heads/master@{#811347}
parent f5f06c47
......@@ -612,9 +612,9 @@ void OnMakePublicKeyCredentialForPaymentComplete(
auto* payment_credential_remote =
CredentialManagerProxy::From(resolver->GetScriptState())
->PaymentCredential();
auto credential_id = credential->info->raw_id;
payment_credential_remote->StorePaymentCredential(
std::move(payment_instrument), credential->info->raw_id,
options->rp()->id(),
std::move(payment_instrument), credential_id, options->rp()->id(),
WTF::Bind(
&OnPaymentCredentialCreationComplete,
WTF::Passed(std::make_unique<ScopedPromiseResolver>(resolver)),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment