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

Unified Diff: chrome/app/chrome_exe_main.cc

Issue 27023: Set the default flag to know if we should restart the process... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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
« no previous file with comments | « chrome/app/breakpad.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_exe_main.cc
===================================================================
--- chrome/app/chrome_exe_main.cc (revision 10137)
+++ chrome/app/chrome_exe_main.cc (working copy)
@@ -55,7 +55,7 @@
// Initialize the crash reporter.
InitCrashReporter(client.GetDLLPath());
- bool exit_now = false;
+ bool exit_now = true;
if (ShowRestartDialogIfCrashed(&exit_now)) {
// We have restarted because of a previous crash. The user might
// decide that he does not want to continue.
@@ -88,6 +88,14 @@
// Initialize the crash reporter.
InitCrashReporter(client_util::GetDLLPath(dll_name, dll_path));
+ bool exit_now = true;
+ if (ShowRestartDialogIfCrashed(&exit_now)) {
+ // We have restarted because of a previous crash. The user might
+ // decide that he does not want to continue.
+ if (exit_now)
+ return ResultCodes::NORMAL_EXIT;
+ }
+
if (NULL != dll_handle) {
client_util::DLL_MAIN entry = reinterpret_cast<client_util::DLL_MAIN>(
::GetProcAddress(dll_handle, "ChromeMain"));
« no previous file with comments | « chrome/app/breakpad.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698