OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "chrome/browser/mac/relauncher.h" | 5 #include "chrome/browser/mac/relauncher.h" |
6 | 6 |
7 #include <ApplicationServices/ApplicationServices.h> | 7 #include <ApplicationServices/ApplicationServices.h> |
8 #include <AvailabilityMacros.h> | 8 #include <AvailabilityMacros.h> |
9 #include <crt_externs.h> | 9 #include <crt_externs.h> |
10 #include <dlfcn.h> | 10 #include <dlfcn.h> |
11 #include <string.h> | 11 #include <string.h> |
12 #include <sys/event.h> | 12 #include <sys/event.h> |
13 #include <sys/time.h> | 13 #include <sys/time.h> |
14 #include <sys/types.h> | 14 #include <sys/types.h> |
15 #include <unistd.h> | 15 #include <unistd.h> |
16 | 16 |
17 #include <string> | 17 #include <string> |
18 #include <vector> | 18 #include <vector> |
19 | 19 |
20 #include "base/basictypes.h" | 20 #include "base/basictypes.h" |
21 #include "base/file_util.h" | 21 #include "base/file_util.h" |
22 #include "base/logging.h" | 22 #include "base/logging.h" |
23 #include "base/mac/mac_logging.h" | 23 #include "base/mac/mac_logging.h" |
24 #include "base/mac/mac_util.h" | 24 #include "base/mac/mac_util.h" |
25 #include "base/mac/scoped_cftyperef.h" | 25 #include "base/mac/scoped_cftyperef.h" |
26 #include "base/path_service.h" | 26 #include "base/path_service.h" |
27 #include "base/posix/eintr_wrapper.h" | 27 #include "base/posix/eintr_wrapper.h" |
28 #include "base/process_util.h" | 28 #include "base/process/launch.h" |
29 #include "base/strings/stringprintf.h" | 29 #include "base/strings/stringprintf.h" |
30 #include "base/strings/sys_string_conversions.h" | 30 #include "base/strings/sys_string_conversions.h" |
31 #include "chrome/browser/mac/install_from_dmg.h" | 31 #include "chrome/browser/mac/install_from_dmg.h" |
32 #include "chrome/common/chrome_switches.h" | 32 #include "chrome/common/chrome_switches.h" |
33 #include "content/public/common/content_paths.h" | 33 #include "content/public/common/content_paths.h" |
34 #include "content/public/common/content_switches.h" | 34 #include "content/public/common/content_switches.h" |
35 #include "content/public/common/main_function_params.h" | 35 #include "content/public/common/main_function_params.h" |
36 | 36 |
37 namespace mac_relauncher { | 37 namespace mac_relauncher { |
38 | 38 |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 if (!dmg_bsd_device_name.empty()) { | 372 if (!dmg_bsd_device_name.empty()) { |
373 EjectAndTrashDiskImage(dmg_bsd_device_name); | 373 EjectAndTrashDiskImage(dmg_bsd_device_name); |
374 } | 374 } |
375 | 375 |
376 return 0; | 376 return 0; |
377 } | 377 } |
378 | 378 |
379 } // namespace internal | 379 } // namespace internal |
380 | 380 |
381 } // namespace mac_relauncher | 381 } // namespace mac_relauncher |
OLD | NEW |