OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #import <Foundation/Foundation.h> | 5 #import <Foundation/Foundation.h> |
6 #include <launch.h> | 6 #include <launch.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/mac/bundle_locations.h" | 14 #include "base/mac/bundle_locations.h" |
15 #include "base/mac/foundation_util.h" | 15 #include "base/mac/foundation_util.h" |
16 #include "base/mac/mac_util.h" | 16 #include "base/mac/mac_util.h" |
17 #include "base/mac/scoped_nsautorelease_pool.h" | 17 #include "base/mac/scoped_nsautorelease_pool.h" |
18 #include "base/mac/scoped_nsobject.h" | 18 #include "base/mac/scoped_nsobject.h" |
19 #include "base/metrics/histogram_macros.h" | 19 #include "base/metrics/histogram_macros.h" |
20 #include "base/path_service.h" | 20 #include "base/path_service.h" |
21 #include "base/strings/string_util.h" | 21 #include "base/strings/string_util.h" |
22 #include "base/strings/stringprintf.h" | |
23 #include "base/strings/sys_string_conversions.h" | 22 #include "base/strings/sys_string_conversions.h" |
24 #include "base/threading/thread_restrictions.h" | 23 #include "base/threading/thread_restrictions.h" |
25 #include "base/version.h" | 24 #include "base/version.h" |
26 #include "chrome/common/chrome_paths.h" | 25 #include "chrome/common/chrome_paths.h" |
27 #include "chrome/common/chrome_switches.h" | 26 #include "chrome/common/chrome_switches.h" |
28 #include "chrome/common/mac/launchd.h" | 27 #include "chrome/common/mac/launchd.h" |
29 #include "chrome/common/service_process_util_posix.h" | 28 #include "chrome/common/service_process_util_posix.h" |
30 #include "components/version_info/version_info.h" | 29 #include "components/version_info/version_info.h" |
31 #include "ipc/unix_domain_socket_util.h" | 30 #include "ipc/unix_domain_socket_util.h" |
32 | 31 |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 CFErrorRef err = NULL; | 461 CFErrorRef err = NULL; |
463 if (!Launchd::GetInstance()->RemoveJob(label, &err)) { | 462 if (!Launchd::GetInstance()->RemoveJob(label, &err)) { |
464 base::ScopedCFTypeRef<CFErrorRef> scoped_err(err); | 463 base::ScopedCFTypeRef<CFErrorRef> scoped_err(err); |
465 DLOG(ERROR) << "RemoveJob " << err; | 464 DLOG(ERROR) << "RemoveJob " << err; |
466 // Exiting with zero, so launchd doesn't restart the process. | 465 // Exiting with zero, so launchd doesn't restart the process. |
467 exit(0); | 466 exit(0); |
468 } | 467 } |
469 } | 468 } |
470 } | 469 } |
471 } | 470 } |
OLD | NEW |