+
+ // SetDumpWithoutCrashingFunction must be passed the DumpProcess function
+ // from the EXE and not from the DLL in order for DumpWithoutCrashing to
+ // function correctly.
+ typedef void (__cdecl *DumpProcessFunction)();
+ DumpProcessFunction DumpProcess = reinterpret_cast<DumpProcessFunction>(
+ ::GetProcAddress(::GetModuleHandle(chrome::kBrowserProcessExecutableName),
+ "DumpProcessWithoutCrash"));
+ base::debug::SetDumpWithoutCrashingFunction(DumpProcess);