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

Side by Side Diff: chrome/browser/apps/app_shim/unix_domain_socket_acceptor.cc

Issue 585123004: Mac: Give app_shim code a nicer home (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: various cleanups Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "apps/app_shim/unix_domain_socket_acceptor.h" 5 #include "chrome/browser/apps/app_shim/unix_domain_socket_acceptor.h"
6 6
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/files/scoped_file.h" 8 #include "base/files/scoped_file.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "ipc/unix_domain_socket_util.h" 10 #include "ipc/unix_domain_socket_util.h"
11 11
12 namespace apps { 12 namespace apps {
13 13
14 UnixDomainSocketAcceptor::UnixDomainSocketAcceptor(const base::FilePath& path, 14 UnixDomainSocketAcceptor::UnixDomainSocketAcceptor(const base::FilePath& path,
15 Delegate* delegate) 15 Delegate* delegate)
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 PLOG(ERROR) << "close"; 81 PLOG(ERROR) << "close";
82 listen_fd_ = -1; 82 listen_fd_ = -1;
83 if (unlink(path_.value().c_str()) < 0) 83 if (unlink(path_.value().c_str()) < 0)
84 PLOG(ERROR) << "unlink"; 84 PLOG(ERROR) << "unlink";
85 85
86 // Unregister libevent for the listening socket and close it. 86 // Unregister libevent for the listening socket and close it.
87 server_listen_connection_watcher_.StopWatchingFileDescriptor(); 87 server_listen_connection_watcher_.StopWatchingFileDescriptor();
88 } 88 }
89 89
90 } // namespace apps 90 } // namespace apps
OLDNEW
« no previous file with comments | « chrome/browser/apps/app_shim/unix_domain_socket_acceptor.h ('k') | chrome/browser/browser_process_platform_part_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698