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

Unified Diff: chrome/app/chrome_main.cc

Issue 7215040: Fix relaunches on the Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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
Index: chrome/app/chrome_main.cc
===================================================================
--- chrome/app/chrome_main.cc (revision 90369)
+++ chrome/app/chrome_main.cc (working copy)
@@ -63,6 +63,7 @@
#include "base/mac/os_crash_dumps.h"
#include "base/mach_ipc_mac.h"
#include "chrome/app/breakpad_mac.h"
+#include "chrome/browser/mac/relauncher.h"
#include "chrome/common/chrome_paths_internal.h"
#include "content/browser/mach_broker_mac.h"
#include "grit/chromium_strings.h"
@@ -305,7 +306,11 @@
// Returns true if this process is a child of the browser process.
bool SubprocessIsBrowserChild(const std::string& process_type) {
- if (process_type.empty() || process_type == switches::kServiceProcess) {
+ if (process_type.empty() ||
+#if defined(OS_MACOSX)
+ process_type == switches::kRelauncherProcess ||
+#endif
+ process_type == switches::kServiceProcess) {
return false;
}
return true;
@@ -508,6 +513,7 @@
#if defined(OS_MACOSX)
// TODO(port): Use OOP profile import - http://crbug.com/22142 .
{ switches::kProfileImportProcess, ProfileImportMain },
+ { switches::kRelauncherProcess, mac_relauncher::internal::RelauncherMain },
#endif
#if !defined(DISABLE_NACL)
{ switches::kNaClLoaderProcess, NaClMain },
@@ -613,8 +619,10 @@
#if defined(OS_MACOSX)
SendTaskPortToParentProcess();
#endif
+ }
#if defined(OS_POSIX)
+ if (!process_type.empty()) {
// When you hit Ctrl-C in a terminal running the browser
// process, a SIGINT is delivered to the entire process group.
// When debugging the browser process via gdb, gdb catches the
@@ -628,8 +636,9 @@
// TODO(evanm): move this to some shared subprocess-init function.
if (!base::debug::BeingDebugged())
signal(SIGINT, SIG_IGN);
+ }
#endif
- }
+
SetupCRT(command_line);
#if defined(USE_NSS)

Powered by Google App Engine
This is Rietveld 408576698