| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This module contains the necessary code to register the Breakpad exception | 5 // This module contains the necessary code to register the Breakpad exception |
| 6 // handler. This implementation is based on Chrome crash reporting code. See: | 6 // handler. This implementation is based on Chrome crash reporting code. See: |
| 7 // - src/components/crash/content/app/breakpad_win.cc | 7 // - src/components/crash/app/breakpad_win.cc |
| 8 // - src/chrome/installer/setup/setup_main.cc | 8 // - src/chrome/installer/setup/setup_main.cc |
| 9 | 9 |
| 10 #include "remoting/base/breakpad.h" | 10 #include "remoting/base/breakpad.h" |
| 11 | 11 |
| 12 #include <windows.h> | 12 #include <windows.h> |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "base/atomicops.h" | 15 #include "base/atomicops.h" |
| 16 #include "base/file_version_info.h" | 16 #include "base/file_version_info.h" |
| 17 #include "base/lazy_instance.h" | 17 #include "base/lazy_instance.h" |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 // Touch the object to make sure it is initialized. | 200 // Touch the object to make sure it is initialized. |
| 201 BreakpadWin::GetInstance(); | 201 BreakpadWin::GetInstance(); |
| 202 } | 202 } |
| 203 | 203 |
| 204 void InitializeCrashReportingForTest(const wchar_t* pipe_name) { | 204 void InitializeCrashReportingForTest(const wchar_t* pipe_name) { |
| 205 BreakpadWin::pipe_name_ = pipe_name; | 205 BreakpadWin::pipe_name_ = pipe_name; |
| 206 InitializeCrashReporting(); | 206 InitializeCrashReporting(); |
| 207 } | 207 } |
| 208 | 208 |
| 209 } // namespace remoting | 209 } // namespace remoting |
| OLD | NEW |