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

Unified Diff: ipc/unix_domain_socket_util.cc

Issue 1636583002: ipc: remove unused variable from CreateClientUnixDomainSocket() function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « ipc/unix_domain_socket_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/unix_domain_socket_util.cc
diff --git a/ipc/unix_domain_socket_util.cc b/ipc/unix_domain_socket_util.cc
index a21df2fea00c9b8f355b980f1b51dcdb608341c8..036faa2dccc9def09b8010b9029df0a7dd65e7e2 100644
--- a/ipc/unix_domain_socket_util.cc
+++ b/ipc/unix_domain_socket_util.cc
@@ -5,7 +5,6 @@
#include "ipc/unix_domain_socket_util.h"
#include <errno.h>
-#include <stddef.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/un.h>
@@ -118,13 +117,10 @@ bool CreateClientUnixDomainSocket(const base::FilePath& socket_path,
int* client_socket) {
DCHECK(client_socket);
- std::string socket_name = socket_path.value();
- base::FilePath socket_dir = socket_path.DirName();
-
struct sockaddr_un unix_addr;
size_t unix_addr_len;
base::ScopedFD fd(
- MakeUnixAddrForPath(socket_name, &unix_addr, &unix_addr_len));
+ MakeUnixAddrForPath(socket_path.value(), &unix_addr, &unix_addr_len));
if (!fd.is_valid())
return false;
« no previous file with comments | « ipc/unix_domain_socket_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698