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

Side by Side Diff: content/shell/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 | « content/shell/common/v8_breakpad_support_win.h ('k') | gin/debug_impl.h » ('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 "content/shell/common/v8_breakpad_support_win.h"
6
7 #include <windows.h>
8
9 #include "base/logging.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 content_shell.exe
17 gin::Debug::CodeRangeCreatedCallback create_callback =
18 reinterpret_cast<gin::Debug::CodeRangeCreatedCallback>(
19 ::GetProcAddress(::GetModuleHandle(L"content_shell.exe"),
20 "RegisterNonABICompliantCodeRange"));
21 gin::Debug::CodeRangeDeletedCallback delete_callback =
22 reinterpret_cast<gin::Debug::CodeRangeDeletedCallback>(
23 ::GetProcAddress(::GetModuleHandle(L"content_shell.exe"),
24 "UnregisterNonABICompliantCodeRange"));
25 if (create_callback && delete_callback) {
26 gin::Debug::SetCodeRangeCreatedCallback(create_callback);
27 gin::Debug::SetCodeRangeDeletedCallback(delete_callback);
28 }
29 #endif
30 }
31
32 } // namespace v8_breakpad_support
OLDNEW
« no previous file with comments | « content/shell/common/v8_breakpad_support_win.h ('k') | gin/debug_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698