Commit 2ef8fb13 authored by Jose Dapena Paz's avatar Jose Dapena Paz Committed by Commit Bot

libstdc++: do not use const type as member of std::vector in messaging layer report client.

Fix the error found compiling with libstdc++:
../../chrome/browser/policy/messaging_layer/public/report_client.cc:174:38:   required from here
/usr/include/c++/9/bits/stl_vector.h:398:66: error: static assertion failed: std::vector must have a non-const, non-volatile value_type

Bug: 957519
Change-Id: I8b8a306d841636882c7563edf9cdfc58464bc545
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2358737Reviewed-by: default avatarZach Trudo <zatrudo@google.com>
Commit-Queue: José Dapena Paz <jdapena@igalia.com>
Cr-Commit-Position: refs/heads/master@{#798672}
parent e771c29c
......@@ -171,7 +171,7 @@ void Uploader::ProcessBlob(Priority priority,
}
std::vector<EncryptedRecord>* const records_;
const std::vector<const uint8_t> data_;
const std::vector<uint8_t> data_;
};
Start<ProcessBlobContext>(data.ValueOrDie(), encrypted_records_.get(),
......
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