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

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

Issue 23484022: DumpWithoutCrashing() is looking up wrong breakpad_win entry point. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "chrome/common/dump_without_crashing.h" 7 #include "chrome/common/dump_without_crashing.h"
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/common/chrome_constants.h" 10 #include "chrome/common/chrome_constants.h"
(...skipping 13 matching lines...) Expand all
24 } // namespace 24 } // namespace
25 25
26 namespace logging { 26 namespace logging {
27 27
28 void DumpWithoutCrashing() { 28 void DumpWithoutCrashing() {
29 #if defined(OS_WIN) 29 #if defined(OS_WIN)
30 // Get the breakpad pointer from chrome.exe 30 // Get the breakpad pointer from chrome.exe
31 typedef void (__cdecl *DumpProcessFunction)(); 31 typedef void (__cdecl *DumpProcessFunction)();
32 DumpProcessFunction DumpProcess = reinterpret_cast<DumpProcessFunction>( 32 DumpProcessFunction DumpProcess = reinterpret_cast<DumpProcessFunction>(
33 ::GetProcAddress(::GetModuleHandle(chrome::kBrowserProcessExecutableName), 33 ::GetProcAddress(::GetModuleHandle(chrome::kBrowserProcessExecutableName),
34 "DumpProcess")); 34 "DumpProcessWithoutCrash"));
35 if (DumpProcess) 35 if (DumpProcess)
36 DumpProcess(); 36 DumpProcess();
37 #elif defined(OS_POSIX) 37 #elif defined(OS_POSIX)
38 if (dump_without_crashing_function_) 38 if (dump_without_crashing_function_)
39 (*dump_without_crashing_function_)(); 39 (*dump_without_crashing_function_)();
40 #else 40 #else
41 NOTIMPLEMENTED(); 41 NOTIMPLEMENTED();
42 #endif 42 #endif
43 } 43 }
44 44
45 #if defined(OS_POSIX) 45 #if defined(OS_POSIX)
46 void SetDumpWithoutCrashingFunction(void (*function)()) { 46 void SetDumpWithoutCrashingFunction(void (*function)()) {
47 dump_without_crashing_function_ = function; 47 dump_without_crashing_function_ = function;
48 } 48 }
49 #endif 49 #endif
50 50
51 } // namespace logging 51 } // namespace logging
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698