Index: chrome/browser/ui/webui/options/browser_options_handler.cc |
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc |
index d8cb840074141832a5310303a46239abe68c1f8c..502663e8d7007c1fcf8c448e0fcd48a97d83955d 100644 |
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc |
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc |
@@ -1659,23 +1659,6 @@ void BrowserOptionsHandler::HandleDefaultZoomFactor( |
} |
void BrowserOptionsHandler::HandleRestartBrowser(const base::ListValue* args) { |
-#if defined(OS_WIN) |
- // On Windows Breakpad will upload crash reports if the breakpad pipe name |
- // environment variable is defined. So we undefine this environment variable |
- // before restarting, as the restarted processes will inherit their |
- // environment variables from ours, thus suppressing crash uploads. |
- if (!ChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled()) { |
- HMODULE exe_module = GetModuleHandle(chrome::kBrowserProcessExecutableName); |
- if (exe_module) { |
- typedef void (__cdecl *ClearBreakpadPipeEnvVar)(); |
- ClearBreakpadPipeEnvVar clear = reinterpret_cast<ClearBreakpadPipeEnvVar>( |
- GetProcAddress(exe_module, "ClearBreakpadPipeEnvironmentVariable")); |
- if (clear) |
- clear(); |
- } |
- } |
-#endif |
- |
chrome::AttemptRestart(); |
} |