Index: chrome/browser/web_applications/web_app_mac.mm |
diff --git a/chrome/browser/web_applications/web_app_mac.mm b/chrome/browser/web_applications/web_app_mac.mm |
index 3811329ec704d1c7f99b4e2607794afdcb80fdcb..35878b8a674b44ff142790a286e935b335ed3ce3 100644 |
--- a/chrome/browser/web_applications/web_app_mac.mm |
+++ b/chrome/browser/web_applications/web_app_mac.mm |
@@ -17,8 +17,10 @@ |
#include "base/mac/mac_util.h" |
#include "base/mac/scoped_cftyperef.h" |
#include "base/path_service.h" |
+#include "base/process/process.h" |
#include "base/strings/string_util.h" |
#include "base/strings/string16.h" |
+#include "base/strings/string_number_conversions.h" |
benwells
2013/08/23 13:04:52
Nit: move above string_util
jackhou1
2013/08/26 04:29:45
Done.
|
#include "base/strings/sys_string_conversions.h" |
#include "base/strings/utf_string_conversions.h" |
#import "chrome/browser/mac/dock.h" |
@@ -210,7 +212,9 @@ void LaunchShimOnFileThread( |
return; |
CommandLine command_line(CommandLine::NO_PROGRAM); |
- command_line.AppendSwitch(app_mode::kNoLaunchApp); |
+ command_line.AppendSwitchASCII( |
+ app_mode::kLaunchedByChromeProcessId, |
+ base::IntToString(base::Process::Current().pid())); |
Robert Sesek
2013/08/23 18:47:32
Use base::GetCurrentProcessId() in base/process/pr
jackhou1
2013/08/26 04:29:45
Done.
|
// Launch without activating (kLSLaunchDontSwitch). |
base::mac::OpenApplicationWithPath( |
shim_path, command_line, kLSLaunchDefaults | kLSLaunchDontSwitch, NULL); |