| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/mac/launch_services_util.h" | 5 #include "base/mac/launch_services_util.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/mac/mac_logging.h" | 8 #include "base/mac/mac_logging.h" |
| 9 #include "base/mac/mac_util.h" | 9 #include "base/mac/mac_util.h" |
| 10 #include "base/mac/scoped_cftyperef.h" |
| 10 #include "base/strings/sys_string_conversions.h" | 11 #include "base/strings/sys_string_conversions.h" |
| 11 | 12 |
| 12 namespace base { | 13 namespace base { |
| 13 namespace mac { | 14 namespace mac { |
| 14 | 15 |
| 15 bool OpenApplicationWithPath(const base::FilePath& bundle_path, | 16 bool OpenApplicationWithPath(const base::FilePath& bundle_path, |
| 16 const CommandLine& command_line, | 17 const CommandLine& command_line, |
| 17 LSLaunchFlags launch_flags, | 18 LSLaunchFlags launch_flags, |
| 18 ProcessSerialNumber* out_psn) { | 19 ProcessSerialNumber* out_psn) { |
| 19 FSRef app_fsref; | 20 FSRef app_fsref; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 OSStatus status = LSOpenApplication(&ls_parameters, out_psn); | 57 OSStatus status = LSOpenApplication(&ls_parameters, out_psn); |
| 57 if (status != noErr) { | 58 if (status != noErr) { |
| 58 OSSTATUS_LOG(ERROR, status) << "LSOpenApplication"; | 59 OSSTATUS_LOG(ERROR, status) << "LSOpenApplication"; |
| 59 return false; | 60 return false; |
| 60 } | 61 } |
| 61 return true; | 62 return true; |
| 62 } | 63 } |
| 63 | 64 |
| 64 } // namespace mac | 65 } // namespace mac |
| 65 } // namespace base | 66 } // namespace base |
| OLD | NEW |