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

Unified Diff: remoting/host/gnubby_auth_handler_posix.cc

Issue 376323002: Refactor unix domain socket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved UnixDomainListenSocket to net::deprecated namespace. Created 6 years, 5 months 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/socket/unix_domain_socket_posix_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/gnubby_auth_handler_posix.cc
diff --git a/remoting/host/gnubby_auth_handler_posix.cc b/remoting/host/gnubby_auth_handler_posix.cc
index 77938e078b70c920a03c21e1ab3532d4cfe020fd..f5673d33dd0efe035c92a164048905de36cb5b6f 100644
--- a/remoting/host/gnubby_auth_handler_posix.cc
+++ b/remoting/host/gnubby_auth_handler_posix.cc
@@ -14,7 +14,7 @@
#include "base/lazy_instance.h"
#include "base/stl_util.h"
#include "base/values.h"
-#include "net/socket/unix_domain_socket_posix.h"
+#include "net/socket/unix_domain_listen_socket_posix.h"
#include "remoting/base/logging.h"
#include "remoting/host/gnubby_socket.h"
#include "remoting/proto/control.pb.h"
@@ -263,7 +263,7 @@ void GnubbyAuthHandlerPosix::CreateAuthorizationSocket() {
HOST_LOG << "Listening for gnubby requests on "
<< g_gnubby_socket_name.Get().value();
- auth_socket_ = net::UnixDomainSocket::CreateAndListen(
+ auth_socket_ = net::deprecated::UnixDomainListenSocket::CreateAndListen(
g_gnubby_socket_name.Get().value(), this, base::Bind(MatchUid));
if (!auth_socket_.get()) {
LOG(ERROR) << "Failed to open socket for gnubby requests";
« no previous file with comments | « net/socket/unix_domain_socket_posix_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698