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

Unified Diff: chrome/app/breakpad_win.cc

Issue 10689021: Merge 144224 - Don't show the restart dialog in the GPU process. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: 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
===================================================================
--- chrome/app/breakpad_win.cc (revision 144710)
+++ chrome/app/breakpad_win.cc (working copy)
@@ -614,6 +614,14 @@
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