| 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/eintr_wrapper.h" | |
| 22 #include "base/file_util.h" | 21 #include "base/file_util.h" |
| 23 #include "base/logging.h" | 22 #include "base/logging.h" |
| 24 #include "base/mac/mac_logging.h" | 23 #include "base/mac/mac_logging.h" |
| 25 #include "base/mac/mac_util.h" | 24 #include "base/mac/mac_util.h" |
| 26 #include "base/mac/scoped_cftyperef.h" | 25 #include "base/mac/scoped_cftyperef.h" |
| 27 #include "base/path_service.h" | 26 #include "base/path_service.h" |
| 27 #include "base/posix/eintr_wrapper.h" |
| 28 #include "base/process_util.h" | 28 #include "base/process_util.h" |
| 29 #include "base/stringprintf.h" | 29 #include "base/stringprintf.h" |
| 30 #include "base/sys_string_conversions.h" | 30 #include "base/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 // RTLD_MAIN_ONLY is supported as of Mac OS X 10.5, but <dlfcn.h> does not | 37 // RTLD_MAIN_ONLY is supported as of Mac OS X 10.5, but <dlfcn.h> does not |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 if (!dmg_bsd_device_name.empty()) { | 381 if (!dmg_bsd_device_name.empty()) { |
| 382 EjectAndTrashDiskImage(dmg_bsd_device_name); | 382 EjectAndTrashDiskImage(dmg_bsd_device_name); |
| 383 } | 383 } |
| 384 | 384 |
| 385 return 0; | 385 return 0; |
| 386 } | 386 } |
| 387 | 387 |
| 388 } // namespace internal | 388 } // namespace internal |
| 389 | 389 |
| 390 } // namespace mac_relauncher | 390 } // namespace mac_relauncher |
| OLD | NEW |