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

Unified Diff: chrome/app/breakpad_win.cc

Issue 10657024: Don't show the restart dialog in the GPU process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move check to ShowRestartDialogIfCrashed. Created 8 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/breakpad_win.cc
diff --git a/chrome/app/breakpad_win.cc b/chrome/app/breakpad_win.cc
index 6461a5dc44d2e3b6cbf9d080625b029df6128fca..b1216ccffae6282ec290ae35abf9d1e933988f7f 100644
--- a/chrome/app/breakpad_win.cc
+++ b/chrome/app/breakpad_win.cc
@@ -614,6 +614,14 @@ bool ShowRestartDialogIfCrashed(bool* exit_now) {
return false;
}
+ // Only show this for the browser process. See crbug.com/132119.
+ const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ std::string process_type =
+ command_line.GetSwitchValueASCII(switches::kProcessType);
+ if (!process_type.empty()) {
+ return false;
+ }
+
DWORD len = ::GetEnvironmentVariableW(
ASCIIToWide(env_vars::kRestartInfo).c_str(), NULL, 0);
if (!len)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698