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

Unified Diff: base/mac/launch_services_util.h

Issue 2398853002: Remove deprecated APIs from OpenApplicationWithPath. (Closed)
Patch Set: More cleanup. Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/BUILD.gn ('k') | base/mac/launch_services_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/launch_services_util.h
diff --git a/base/mac/launch_services_util.h b/base/mac/launch_services_util.h
index 0e64316052b3e04da9bc472201f8a9fb1994ef55..d18b99eccd97b01ee5f1445cadcbae0f03413ac8 100644
--- a/base/mac/launch_services_util.h
+++ b/base/mac/launch_services_util.h
@@ -5,7 +5,7 @@
#ifndef BASE_MAC_LAUNCH_SERVICES_UTIL_H_
#define BASE_MAC_LAUNCH_SERVICES_UTIL_H_
-#include <CoreServices/CoreServices.h>
+#import <AppKit/AppKit.h>
#include "base/base_export.h"
#include "base/command_line.h"
@@ -18,14 +18,15 @@ namespace mac {
// Launches the application bundle at |bundle_path|, passing argv[1..] from
// |command_line| as command line arguments if the app isn't already running.
-// |launch_flags| are passed directly to LSApplicationParameters.
-// |out_psn|, if not NULL, will be set to the process serial number of the
-// application's main process if the app was successfully launched.
+// |launch_flags| are passed directly to launchApplicationAtURL:.
+// |descriptor|, if not nill, will be sent to the application after it is
+// successfully launched.
// Returns true if the app was successfully launched.
BASE_EXPORT bool OpenApplicationWithPath(const FilePath& bundle_path,
const CommandLine& command_line,
- LSLaunchFlags launch_flags,
- ProcessSerialNumber* out_psn);
+ NSWorkspaceLaunchOptions launch_flags,
+ NSAppleEventDescriptor* descriptor,
+ pid_t* pid);
} // namespace mac
} // namespace base
« no previous file with comments | « base/BUILD.gn ('k') | base/mac/launch_services_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698