| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/process_singleton.h" | 5 #include "chrome/browser/process_singleton.h" |
| 6 | 6 |
| 7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 10 #include "base/win_util.h" | 10 #include "base/win_util.h" |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 Profile* profile = profile_manager->GetDefaultProfile(user_data_dir); | 222 Profile* profile = profile_manager->GetDefaultProfile(user_data_dir); |
| 223 if (!profile) { | 223 if (!profile) { |
| 224 // We should only be able to get here if the profile already exists and | 224 // We should only be able to get here if the profile already exists and |
| 225 // has been created. | 225 // has been created. |
| 226 NOTREACHED(); | 226 NOTREACHED(); |
| 227 return TRUE; | 227 return TRUE; |
| 228 } | 228 } |
| 229 | 229 |
| 230 // Run the browser startup sequence again, with the command line of the | 230 // Run the browser startup sequence again, with the command line of the |
| 231 // signalling process. | 231 // signalling process. |
| 232 BrowserInit::ProcessCommandLine(parsed_command_line, cur_dir, prefs, false, | 232 BrowserInit::ProcessCommandLine(parsed_command_line, cur_dir, false, |
| 233 profile, NULL); | 233 profile, NULL); |
| 234 return TRUE; | 234 return TRUE; |
| 235 } | 235 } |
| 236 return TRUE; | 236 return TRUE; |
| 237 } | 237 } |
| 238 | 238 |
| 239 LRESULT CALLBACK ProcessSingleton::WndProc(HWND hwnd, UINT message, | 239 LRESULT CALLBACK ProcessSingleton::WndProc(HWND hwnd, UINT message, |
| 240 WPARAM wparam, LPARAM lparam) { | 240 WPARAM wparam, LPARAM lparam) { |
| 241 switch (message) { | 241 switch (message) { |
| 242 case WM_COPYDATA: | 242 case WM_COPYDATA: |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 return true; | 295 return true; |
| 296 } | 296 } |
| 297 | 297 |
| 298 protected: | 298 protected: |
| 299 std::vector<uint32> browsers_; | 299 std::vector<uint32> browsers_; |
| 300 }; | 300 }; |
| 301 | 301 |
| 302 ZombieDetector zombie_detector; | 302 ZombieDetector zombie_detector; |
| 303 base::KillProcesses(L"chrome.exe", ResultCodes::HUNG, &zombie_detector); | 303 base::KillProcesses(L"chrome.exe", ResultCodes::HUNG, &zombie_detector); |
| 304 } | 304 } |
| OLD | NEW |