summaryrefslogtreecommitdiffstats
path: root/remoting/host/token_validator_factory_impl.cc
diff options
context:
space:
mode:
authorsergeyu <sergeyu@chromium.org>2015-12-23 11:01:22 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-23 19:02:20 +0000
commit1417e013d741b99685fee8f3d3c166f597655eda (patch)
tree6a2ab7f1547bd187cb4eb8e037f8ed69ca36eed1 /remoting/host/token_validator_factory_impl.cc
parent090488ff3ff55782b02a1b2965bdbe2acd0b8f53 (diff)
downloadchromium_src-1417e013d741b99685fee8f3d3c166f597655eda.zip
chromium_src-1417e013d741b99685fee8f3d3c166f597655eda.tar.gz
chromium_src-1417e013d741b99685fee8f3d3c166f597655eda.tar.bz2
Use std::move() instead of .Pass() in remoting/host
Now there is a presubmit check that doesn't allow Pass() anymore. See https://www.chromium.org/rvalue-references for information about std::move in chromium. Review URL: https://codereview.chromium.org/1549493004 Cr-Commit-Position: refs/heads/master@{#366759}
Diffstat (limited to 'remoting/host/token_validator_factory_impl.cc')
-rw-r--r--remoting/host/token_validator_factory_impl.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/remoting/host/token_validator_factory_impl.cc b/remoting/host/token_validator_factory_impl.cc
index a66d9e5..321722d 100644
--- a/remoting/host/token_validator_factory_impl.cc
+++ b/remoting/host/token_validator_factory_impl.cc
@@ -6,6 +6,8 @@
#include <stddef.h>
+#include <utility>
+
#include "base/base64.h"
#include "base/bind.h"
#include "base/callback.h"
@@ -94,7 +96,7 @@ void TokenValidatorImpl::StartValidateRequest(const std::string& token) {
new net::UploadBytesElementReader(
post_body_.data(), post_body_.size()));
request_->set_upload(
- net::ElementsUploadDataStream::CreateWithReader(reader.Pass(), 0));
+ net::ElementsUploadDataStream::CreateWithReader(std::move(reader), 0));
request_->Start();
}