Commit 50b8c93b authored by Daniel Rubery's avatar Daniel Rubery Committed by Commit Bot

Remove std::move in BinaryUploadService::UploadForDeepScanning

When moving code around to ensure the token displays on
chrome://safe-browsing, the std::move(token) was placed before the last
usage of token.

Fixed: 1057309
Change-Id: Ic44c71f35d69fac0996246a6b7159c1b5c5fb011
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2083393
Auto-Submit: Daniel Rubery <drubery@chromium.org>
Commit-Queue: Bettina Dea <bdea@chromium.org>
Reviewed-by: default avatarBettina Dea <bdea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746182}
parent ce71886d
...@@ -141,7 +141,7 @@ void BinaryUploadService::UploadForDeepScanning( ...@@ -141,7 +141,7 @@ void BinaryUploadService::UploadForDeepScanning(
std::string token = base::RandBytesAsString(128); std::string token = base::RandBytesAsString(128);
token = base::HexEncode(token.data(), token.size()); token = base::HexEncode(token.data(), token.size());
active_tokens_[raw_request] = token; active_tokens_[raw_request] = token;
raw_request->set_request_token(std::move(token)); raw_request->set_request_token(token);
if (!binary_fcm_service_) { if (!binary_fcm_service_) {
base::PostTask(FROM_HERE, {content::BrowserThread::UI}, base::PostTask(FROM_HERE, {content::BrowserThread::UI},
......
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