Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1943)

Unified Diff: net/cert/multi_threaded_cert_verifier.cc

Issue 1545233002: Convert Pass()→std::move() in //net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cert/internal/signature_algorithm.cc ('k') | net/cert/nss_cert_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/multi_threaded_cert_verifier.cc
diff --git a/net/cert/multi_threaded_cert_verifier.cc b/net/cert/multi_threaded_cert_verifier.cc
index 608bd7349706038028645bd9199bfbe4b0296bf6..23f1d874ec888b166c52a782b4bce5bf4b488d56 100644
--- a/net/cert/multi_threaded_cert_verifier.cc
+++ b/net/cert/multi_threaded_cert_verifier.cc
@@ -5,6 +5,7 @@
#include "net/cert/multi_threaded_cert_verifier.h"
#include <algorithm>
+#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -106,9 +107,9 @@ scoped_ptr<base::Value> CertVerifyResultCallback(
++it) {
hashes->AppendString(it->ToString());
}
- results->Set("public_key_hashes", hashes.Pass());
+ results->Set("public_key_hashes", std::move(hashes));
- return results.Pass();
+ return std::move(results);
}
} // namespace
@@ -329,7 +330,7 @@ class CertVerifierJob {
net_log_.source().ToEventParametersCallback());
requests_.Append(request.get());
- return request.Pass();
+ return request;
}
private:
@@ -468,7 +469,7 @@ int MultiThreadedCertVerifier::Verify(X509Certificate* cert,
scoped_ptr<CertVerifierRequest> request =
job->CreateRequest(callback, verify_result, net_log);
- *out_req = request.Pass();
+ *out_req = std::move(request);
return ERR_IO_PENDING;
}
« no previous file with comments | « net/cert/internal/signature_algorithm.cc ('k') | net/cert/nss_cert_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698