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

Unified Diff: remoting/host/gnubby_auth_handler_posix.cc

Issue 348803003: Refactor tcp socket and unix domain socket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments and fixed unittests for chrome os. Created 6 years, 6 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
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..ab1edc97235262cdca1e5328ef2ce698a0f9919d 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::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";

Powered by Google App Engine
This is Rietveld 408576698