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

Unified Diff: android_webview/native/aw_dev_tools_server.cc

Issue 1552723002: Convert Pass()→std::move() in //android_webview (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
Index: android_webview/native/aw_dev_tools_server.cc
diff --git a/android_webview/native/aw_dev_tools_server.cc b/android_webview/native/aw_dev_tools_server.cc
index 83ab93253a74327af42e2887a9309e2d04c00db8..11e4197be44b8f9c4b8c3dae9a50fa99c43cf164 100644
--- a/android_webview/native/aw_dev_tools_server.cc
+++ b/android_webview/native/aw_dev_tools_server.cc
@@ -4,6 +4,8 @@
#include "android_webview/native/aw_dev_tools_server.h"
+#include <utility>
+
#include "android_webview/common/aw_content_client.h"
#include "android_webview/native/aw_contents.h"
#include "base/bind.h"
@@ -114,7 +116,7 @@ class UnixDomainServerSocketFactory
if (socket->ListenWithAddressAndPort(*name, 0, kBackLog) != net::OK)
return scoped_ptr<net::ServerSocket>();
- return socket.Pass();
+ return std::move(socket);
}
std::string socket_name_;
@@ -142,13 +144,10 @@ void AwDevToolsServer::Start() {
new UnixDomainServerSocketFactory(
base::StringPrintf(kSocketNameFormat, getpid())));
devtools_http_handler_.reset(new DevToolsHttpHandler(
- factory.Pass(),
+ std::move(factory),
base::StringPrintf(kFrontEndURL, content::GetWebKitRevision().c_str()),
- new AwDevToolsServerDelegate(),
- base::FilePath(),
- base::FilePath(),
- GetProduct(),
- GetUserAgent()));
+ new AwDevToolsServerDelegate(), base::FilePath(), base::FilePath(),
+ GetProduct(), GetUserAgent()));
}
void AwDevToolsServer::Stop() {
« no previous file with comments | « android_webview/native/aw_contents_io_thread_client_impl.cc ('k') | android_webview/native/aw_web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698