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

Side by Side Diff: chrome/common/v8_breakpad_support_win.cc

Issue 619543002: Hook up custom Win 64 SEH to v8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 6 years, 2 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
« no previous file with comments | « chrome/common/v8_breakpad_support_win.h ('k') | components/crash/app/breakpad_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 "base/logging.h"
10 #include "chrome/common/chrome_constants.h"
11 #include "gin/public/debug.h"
12
13 namespace v8_breakpad_support {
14
15 void SetUp() {
16 #ifdef _WIN64
17 // Get the breakpad pointer from chrome.exe
18 gin::Debug::CodeRangeCreatedCallback create_callback =
19 reinterpret_cast<gin::Debug::CodeRangeCreatedCallback>(
20 ::GetProcAddress(::GetModuleHandle(
21 chrome::kBrowserProcessExecutableName),
22 "RegisterNonABICompliantCodeRange"));
23 gin::Debug::CodeRangeDeletedCallback delete_callback =
24 reinterpret_cast<gin::Debug::CodeRangeDeletedCallback>(
25 ::GetProcAddress(::GetModuleHandle(
26 chrome::kBrowserProcessExecutableName),
27 "UnregisterNonABICompliantCodeRange"));
28 // When running e.g. browser_tests.exe, these might be NULL.
29 if (create_callback && delete_callback) {
30 gin::Debug::SetCodeRangeCreatedCallback(create_callback);
31 gin::Debug::SetCodeRangeDeletedCallback(delete_callback);
32 }
33 #endif
34 }
35
36 } // namespace v8_breakpad_support
OLDNEW
« no previous file with comments | « chrome/common/v8_breakpad_support_win.h ('k') | components/crash/app/breakpad_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698