OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/common/v8_breakpad_support_win.h" |
| 6 |
| 7 #include <windows.h> |
| 8 |
| 9 #include "chrome/common/chrome_constants.h" |
| 10 #include "gin/public/debug.h" |
| 11 |
| 12 namespace v8_breakpad_support { |
| 13 |
| 14 void SetUp() { |
| 15 #ifdef _WIN64 |
| 16 // Get the breakpad pointer from chrome.exe |
| 17 gin::Debug::CodeRangeCreatedCallback callback = |
| 18 reinterpret_cast<gin::Debug::CodeRangeCreatedCallback>( |
| 19 ::GetProcAddress(::GetModuleHandle( |
| 20 chrome::kBrowserProcessExecutableName), |
| 21 "RegisterNonABICompliantCodeRange")); |
| 22 gin::Debug::SetCodeRangeCreatedCallback(callback); |
| 23 #endif |
| 24 } |
| 25 |
| 26 } // namespace v8_breakpad_support |
OLD | NEW |