Commit 807acabd authored by Jose Dapena Paz's avatar Jose Dapena Paz Committed by Commit Bot

libstdc++: do not declare a vector of const types in FidoDeviceAuthenticator

GNU libstdc++ std::vector explicitely forbids creating an std::vector of
const types. Though, recent changes in FidoDeviceAuthenticator added
two usages of them.

This fixes it just removing the const for the contained type.

Bug: 957519
Change-Id: I55dde64617704707d0a4edb36fc676a2ee5409ff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2412137
Commit-Queue: José Dapena Paz <jose.dapena@lge.com>
Reviewed-by: default avatarAdam Langley <agl@chromium.org>
Cr-Commit-Position: refs/heads/master@{#807456}
parent ada6a324
......@@ -137,7 +137,7 @@ void FidoAuthenticator::WriteLargeBlob(
}
void FidoAuthenticator::ReadLargeBlob(
const std::vector<const LargeBlobKey>& large_blob_keys,
const std::vector<LargeBlobKey>& large_blob_keys,
const base::Optional<pin::TokenResponse> pin_uv_auth_token,
LargeBlobReadCallback callback) {
NOTREACHED();
......
......@@ -220,7 +220,7 @@ class COMPONENT_EXPORT(DEVICE_FIDO) FidoAuthenticator {
// Attempts to read large blobs from the credential encrypted with
// |large_blob_keys|. Returns a map of keys to their blobs.
virtual void ReadLargeBlob(
const std::vector<const LargeBlobKey>& large_blob_keys,
const std::vector<LargeBlobKey>& large_blob_keys,
base::Optional<pin::TokenResponse> pin_uv_auth_token,
LargeBlobReadCallback callback);
......
......@@ -747,7 +747,7 @@ void FidoDeviceAuthenticator::WriteLargeBlob(
}
void FidoDeviceAuthenticator::ReadLargeBlob(
const std::vector<const LargeBlobKey>& large_blob_keys,
const std::vector<LargeBlobKey>& large_blob_keys,
const base::Optional<pin::TokenResponse> pin_uv_auth_token,
LargeBlobReadCallback callback) {
FetchLargeBlobArray(
......@@ -889,7 +889,7 @@ void FidoDeviceAuthenticator::OnWriteLargeBlobFragment(
}
void FidoDeviceAuthenticator::OnHaveLargeBlobArrayForRead(
const std::vector<const LargeBlobKey>& large_blob_keys,
const std::vector<LargeBlobKey>& large_blob_keys,
LargeBlobReadCallback callback,
CtapDeviceResponseCode status,
base::Optional<LargeBlobArrayReader> large_blob_array_reader) {
......
......@@ -101,7 +101,7 @@ class COMPONENT_EXPORT(DEVICE_FIDO) FidoDeviceAuthenticator
const LargeBlobKey& large_blob_key,
base::Optional<pin::TokenResponse> pin_uv_auth_token,
base::OnceCallback<void(CtapDeviceResponseCode)> callback) override;
void ReadLargeBlob(const std::vector<const LargeBlobKey>& large_blob_keys,
void ReadLargeBlob(const std::vector<LargeBlobKey>& large_blob_keys,
base::Optional<pin::TokenResponse> pin_uv_auth_token,
LargeBlobReadCallback callback) override;
......@@ -213,7 +213,7 @@ class COMPONENT_EXPORT(DEVICE_FIDO) FidoDeviceAuthenticator
CtapDeviceResponseCode status,
base::Optional<LargeBlobArrayReader> large_blob_array_reader);
void OnHaveLargeBlobArrayForRead(
const std::vector<const LargeBlobKey>& large_blob_keys,
const std::vector<LargeBlobKey>& large_blob_keys,
LargeBlobReadCallback callback,
CtapDeviceResponseCode status,
base::Optional<LargeBlobArrayReader> large_blob_array_reader);
......
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