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

Side by Side Diff: base/mac/launch_services_util.cc

Issue 817153002: Switch users of foundation_util.h to include it directly and clean up uses of mac_util.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « base/mac/authorization_util.mm ('k') | base/mac/mac_util.h » ('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 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
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
OLDNEW
« no previous file with comments | « base/mac/authorization_util.mm ('k') | base/mac/mac_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698