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

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

Issue 535673004: Gallery: Fix scrolling by touch in the mosaic view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « apps/app_shim/chrome_main_app_mode_mac.mm ('k') | apps/launcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "apps/app_shim/unix_domain_socket_acceptor.h"
6 6
7 #include "base/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)
16 : path_(path), delegate_(delegate), listen_fd_(-1) { 16 : path_(path), delegate_(delegate), listen_fd_(-1) {
17 DCHECK(delegate_); 17 DCHECK(delegate_);
(...skipping 63 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 | « apps/app_shim/chrome_main_app_mode_mac.mm ('k') | apps/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698