summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/browser_main_win.cc')
-rw-r--r--chrome/browser/browser_main_win.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/chrome/browser/browser_main_win.cc b/chrome/browser/browser_main_win.cc
index ef34c41..a7a0f6c 100644
--- a/chrome/browser/browser_main_win.cc
+++ b/chrome/browser/browser_main_win.cc
@@ -45,7 +45,18 @@ bool AskForUninstallConfirmation() {
return (IDOK == win_util::MessageBox(NULL, text, caption, flags));
}
-int DoUninstallTasks() {
+void ShowCloseBrowserFirstMessageBox() {
+ const std::wstring text = l10n_util::GetString(IDS_UNINSTALL_CLOSE_APP);
+ const std::wstring caption = l10n_util::GetString(IDS_PRODUCT_NAME);
+ const UINT flags = MB_OK | MB_ICONWARNING | MB_TOPMOST;
+ win_util::MessageBox(NULL, text, caption, flags);
+}
+
+int DoUninstallTasks(bool chrome_still_running) {
+ if (chrome_still_running) {
+ ShowCloseBrowserFirstMessageBox();
+ return ResultCodes::UNINSTALL_CHROME_ALIVE;
+ }
if (!AskForUninstallConfirmation())
return ResultCodes::UNINSTALL_USER_CANCEL;
// The following actions are just best effort.