Commit 65816456 authored by Erik Chen's avatar Erik Chen Committed by Commit Bot

Update PlatformKeysService methods to use OnceCallback.

This CL is a refactor with no intended behavior change. It updates the
method parameter from Callback -> OnceCallback.

Bug: 1127505
Change-Id: I4a46a10822c02397ca09ffc3da531c685f623652
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2488719
Auto-Submit: Erik Chen <erikchen@chromium.org>
Commit-Queue: Maksim Ivanov <emaxx@chromium.org>
Reviewed-by: default avatarMaksim Ivanov <emaxx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#819283}
parent 8d68f0dc
......@@ -59,9 +59,9 @@ using GetAllKeysCallback =
base::OnceCallback<void(std::vector<std::string> public_key_spki_der_list,
Status status)>;
using ImportCertificateCallback = base::Callback<void(Status status)>;
using ImportCertificateCallback = base::OnceCallback<void(Status status)>;
using RemoveCertificateCallback = base::Callback<void(Status status)>;
using RemoveCertificateCallback = base::OnceCallback<void(Status status)>;
using RemoveKeyCallback = base::OnceCallback<void(Status status)>;
......
......@@ -120,7 +120,7 @@ EnterprisePlatformKeysGetCertificatesFunction::Run() {
browser_context());
platform_keys_service->GetCertificates(
platform_keys_token_id.value(),
base::Bind(
base::BindOnce(
&EnterprisePlatformKeysGetCertificatesFunction::OnGotCertificates,
this));
return RespondLater();
......@@ -181,9 +181,9 @@ EnterprisePlatformKeysImportCertificateFunction::Run() {
platform_keys_service->ImportCertificate(
platform_keys_token_id.value(), cert_x509,
base::Bind(&EnterprisePlatformKeysImportCertificateFunction::
OnImportedCertificate,
this));
base::BindOnce(&EnterprisePlatformKeysImportCertificateFunction::
OnImportedCertificate,
this));
return RespondLater();
}
......@@ -228,9 +228,9 @@ EnterprisePlatformKeysRemoveCertificateFunction::Run() {
platform_keys_service->RemoveCertificate(
platform_keys_token_id.value(), cert_x509,
base::Bind(&EnterprisePlatformKeysRemoveCertificateFunction::
OnRemovedCertificate,
this));
base::BindOnce(&EnterprisePlatformKeysRemoveCertificateFunction::
OnRemovedCertificate,
this));
return RespondLater();
}
......
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