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

Unified Diff: chrome_elf/crash/crash_helper.cc

Issue 2306613003: Restore the chrome watcher pending relocation (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« chrome/app/main_dll_loader_win.cc ('K') | « chrome/app/main_dll_loader_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_elf/crash/crash_helper.cc
diff --git a/chrome_elf/crash/crash_helper.cc b/chrome_elf/crash/crash_helper.cc
index c658fa949b7c5040fd74fa02cfea300b290ad8e7..87095c47994fdf4bfd69dd41da6279d5d1d0abc2 100644
--- a/chrome_elf/crash/crash_helper.cc
+++ b/chrome_elf/crash/crash_helper.cc
@@ -103,7 +103,7 @@ void DisableSetUnhandledExceptionFilter() {
SetUnhandledExceptionFilterPatch) != NO_ERROR) {
#ifdef _DEBUG
assert(false);
-#endif //_DEBUG
+#endif // _DEBUG
}
}
@@ -120,6 +120,11 @@ int GenerateCrashDump(EXCEPTION_POINTERS* exception_pointers) {
// Exported crash APIs for the rest of the process.
//------------------------------------------------------------------------------
+// This helper is invoked by chrome to read upload settings.
+extern "C" __declspec(dllexport) bool GetUploadsEnabled() {
+ return crash_reporter::GetUploadsEnabled();
+}
+
// This helper is invoked by code in chrome.dll to retrieve the crash reports.
// See CrashUploadListCrashpad. Note that we do not pass a std::vector here,
// because we do not want to allocate/free in different modules. The returned
« chrome/app/main_dll_loader_win.cc ('K') | « chrome/app/main_dll_loader_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698