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

Unified Diff: net/http/url_security_manager.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/http/transport_security_state.cc ('k') | net/http/url_security_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/url_security_manager.cc
diff --git a/net/http/url_security_manager.cc b/net/http/url_security_manager.cc
index 075b3884a99553ee0b8146642b61d49af899af16..8565fac5b596947a8cbd7ffa7c24b6d7ad3fed6c 100644
--- a/net/http/url_security_manager.cc
+++ b/net/http/url_security_manager.cc
@@ -4,6 +4,8 @@
#include "net/http/url_security_manager.h"
+#include <utility>
+
#include "net/http/http_auth_filter.h"
namespace net {
@@ -27,12 +29,12 @@ bool URLSecurityManagerWhitelist::CanDelegate(const GURL& auth_origin) const {
void URLSecurityManagerWhitelist::SetDefaultWhitelist(
scoped_ptr<HttpAuthFilter> whitelist_default) {
- whitelist_default_ = whitelist_default.Pass();
+ whitelist_default_ = std::move(whitelist_default);
}
void URLSecurityManagerWhitelist::SetDelegateWhitelist(
scoped_ptr<HttpAuthFilter> whitelist_delegate) {
- whitelist_delegate_ = whitelist_delegate.Pass();
+ whitelist_delegate_ = std::move(whitelist_delegate);
}
bool URLSecurityManagerWhitelist::HasDefaultWhitelist() const {
« no previous file with comments | « net/http/transport_security_state.cc ('k') | net/http/url_security_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698