| Index: base/mac/launch_services_util.mm
|
| diff --git a/base/mac/launch_services_util.mm b/base/mac/launch_services_util.mm
|
| index fa6e8087e68e14e792a57ca533944edd33cb6d0e..130f54c2c266655719f84fdb9c5189f9b1609f6d 100644
|
| --- a/base/mac/launch_services_util.mm
|
| +++ b/base/mac/launch_services_util.mm
|
| @@ -12,7 +12,8 @@ namespace mac {
|
|
|
| Process OpenApplicationWithPath(const base::FilePath& bundle_path,
|
| const CommandLine& command_line,
|
| - NSWorkspaceLaunchOptions launch_options) {
|
| + NSWorkspaceLaunchOptions launch_options,
|
| + NSAppleEventDescriptor* descriptor) {
|
| NSString* bundle_url_spec = base::SysUTF8ToNSString(bundle_path.value());
|
| NSURL* bundle_url = [NSURL fileURLWithPath:bundle_url_spec isDirectory:YES];
|
| DCHECK(bundle_url);
|
| @@ -29,9 +30,14 @@ Process OpenApplicationWithPath(const base::FilePath& bundle_path,
|
| [launch_args addObject:base::SysUTF8ToNSString(argv[i])];
|
| }
|
|
|
| - NSDictionary* configuration = @{
|
| - NSWorkspaceLaunchConfigurationArguments : launch_args,
|
| - };
|
| + NSMutableDictionary* configuration = [NSMutableDictionary dictionary];
|
| + configuration[NSWorkspaceLaunchConfigurationArguments] = launch_args;
|
| + [configuration setObject:launch_args
|
| + forKey:NSWorkspaceLaunchConfigurationArguments];
|
| +
|
| + if (descriptor)
|
| + configuration[NSWorkspaceLaunchConfigurationAppleEvent] = descriptor;
|
| +
|
| NSError* launch_error = nil;
|
| // TODO(jeremya): this opens a new browser window if Chrome is already
|
| // running without any windows open.
|
|
|