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

Unified Diff: chrome/installer/setup/uninstall.cc

Issue 11417036: Fix user-level Chrome self-destruction issues on Windows 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/installer/setup/uninstall.cc
diff --git a/chrome/installer/setup/uninstall.cc b/chrome/installer/setup/uninstall.cc
index a8459b99bd412c31140fb274cd82a380c54a571a..1008a41084a0c978d3104500f3d4defc43e2fc95 100644
--- a/chrome/installer/setup/uninstall.cc
+++ b/chrome/installer/setup/uninstall.cc
@@ -185,38 +185,11 @@ void ClearRlzProductState() {
namespace installer {
-// This functions checks for any Chrome instances that are
-// running and first asks them to close politely by sending a Windows message.
-// If there is an error while sending message or if there are still Chrome
-// procesess active after the message has been sent, this function will try
-// to kill them.
+// Kills all Chrome processes, immediately.
void CloseAllChromeProcesses() {
- for (int j = 0; j < 4; ++j) {
- string16 wnd_class(L"Chrome_WidgetWin_");
- wnd_class.append(base::IntToString16(j));
- HWND window = FindWindowEx(NULL, NULL, wnd_class.c_str(), NULL);
- while (window) {
- HWND tmpWnd = window;
- window = FindWindowEx(NULL, window, wnd_class.c_str(), NULL);
- if (!SendMessageTimeout(tmpWnd, WM_CLOSE, 0, 0, SMTO_BLOCK, 3000, NULL) &&
- (GetLastError() == ERROR_TIMEOUT)) {
- base::CleanupProcesses(installer::kChromeExe, base::TimeDelta(),
- content::RESULT_CODE_HUNG, NULL);
- base::CleanupProcesses(installer::kNaClExe, base::TimeDelta(),
- content::RESULT_CODE_HUNG, NULL);
- return;
- }
- }
- }
-
- // If asking politely didn't work, wait for 15 seconds and then kill all
- // chrome.exe. This check is just in case Chrome is ignoring WM_CLOSE
- // messages.
- base::CleanupProcesses(installer::kChromeExe,
- base::TimeDelta::FromSeconds(15),
+ base::CleanupProcesses(installer::kChromeExe, base::TimeDelta(),
grt (UTC plus 2) 2012/11/16 21:11:24 can this be made to kill only the chrome being uni
gab 2012/11/20 00:46:36 As per F2F discussion, we would like to fix this,
grt (UTC plus 2) 2012/11/20 02:35:38 oh yeah. thanks for the reminder.
content::RESULT_CODE_HUNG, NULL);
- base::CleanupProcesses(installer::kNaClExe,
- base::TimeDelta::FromSeconds(15),
+ base::CleanupProcesses(installer::kNaClExe, base::TimeDelta(),
content::RESULT_CODE_HUNG, NULL);
}
grt (UTC plus 2) 2012/11/16 21:11:24 how about killing delegate_execute.exe, too?
gab 2012/11/20 00:46:36 Done. However I just thought that "delegate_execut
grt (UTC plus 2) 2012/11/20 02:35:38 hmm. that's a good point. i think we should see
gab 2012/11/20 15:38:06 s/should/could
« chrome/browser/chrome_browser_main_win.cc ('K') | « chrome/browser/chrome_browser_main_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698