diff options
Diffstat (limited to 'chrome/browser/chrome_browser_main.cc')
-rw-r--r-- | chrome/browser/chrome_browser_main.cc | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc index 915be8e..6f4e57c 100644 --- a/chrome/browser/chrome_browser_main.cc +++ b/chrome/browser/chrome_browser_main.cc @@ -1555,22 +1555,13 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() { return chrome::RESULT_CODE_PACK_EXTENSION_ERROR; } - bool pass_command_line = true; - #if !defined(OS_MACOSX) // In environments other than Mac OS X we support import of settings // from other browsers. In case this process is a short-lived "import" // process that another browser runs just to import the settings, we // don't want to be checking for another browser process, by design. - pass_command_line = !HasImportSwitch(parsed_command_line()); + if (!HasImportSwitch(parsed_command_line())) { #endif - - // If we're being launched just to check the connector policy, we are - // short-lived and don't want to be passing that switch off. - pass_command_line = pass_command_line && !parsed_command_line().HasSwitch( - switches::kCheckCloudPrintConnectorPolicy); - - if (pass_command_line) { // When another process is running, use that process instead of starting a // new one. NotifyOtherProcess will currently give the other process up to // 20 seconds to respond. Note that this needs to be done before we attempt @@ -1587,7 +1578,7 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() { printf("%s\n", base::SysWideToNativeMB(UTF16ToWide( l10n_util::GetStringUTF16(IDS_USED_EXISTING_BROWSER))).c_str()); #endif - return chrome::RESULT_CODE_NORMAL_EXIT_PROCESS_NOTIFIED; + return content::RESULT_CODE_NORMAL_EXIT; case ProcessSingleton::PROFILE_IN_USE: return chrome::RESULT_CODE_PROFILE_IN_USE; @@ -1603,7 +1594,9 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() { default: NOTREACHED(); } +#if !defined(OS_MACOSX) // closing brace for if } +#endif #if defined(USE_X11) SetBrowserX11ErrorHandlers(); |