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

Side by Side Diff: components/breakpad/app/breakpad_win.cc

Issue 424833008: adds restart message and link to crash reporting setting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removing html from grd Created 6 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/breakpad/app/breakpad_win.h" 5 #include "components/breakpad/app/breakpad_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <tchar.h> 9 #include <tchar.h>
10 #include <userenv.h> 10 #include <userenv.h>
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 #ifndef _WIN64 588 #ifndef _WIN64
589 if (process_type != L"browser" && 589 if (process_type != L"browser" &&
590 !GetBreakpadClient()->IsRunningUnattended()) { 590 !GetBreakpadClient()->IsRunningUnattended()) {
591 // Initialize the hook TerminateProcess to catch unexpected exits. 591 // Initialize the hook TerminateProcess to catch unexpected exits.
592 InitTerminateProcessHooks(); 592 InitTerminateProcessHooks();
593 } 593 }
594 #endif 594 #endif
595 } 595 }
596 } 596 }
597 597
598 // If the user has disabled crash reporting uploads and restarted Chrome, the
599 // restarted instance will still contain the pipe environment variable, which
600 // will allow the restarted process to still upload crash reports. This function
601 // clears the environment variable, so that the restarted Chrome, which inherits
602 // its environment from the current Chrome, will no longer contain the variable.
603 extern "C" void __declspec(dllexport) __cdecl
604 ClearBreakpadPipeEnvironmentVariable() {
605 scoped_ptr<base::Environment> env(base::Environment::Create());
606 env->UnSetVar(kPipeNameVar);
607 }
608
598 } // namespace breakpad 609 } // namespace breakpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698