summaryrefslogtreecommitdiffstats
path: root/chromecast/shell/browser/cast_browser_main_parts.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromecast/shell/browser/cast_browser_main_parts.cc')
-rw-r--r--chromecast/shell/browser/cast_browser_main_parts.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/chromecast/shell/browser/cast_browser_main_parts.cc b/chromecast/shell/browser/cast_browser_main_parts.cc
index 19b8b56..ec3e2e9 100644
--- a/chromecast/shell/browser/cast_browser_main_parts.cc
+++ b/chromecast/shell/browser/cast_browser_main_parts.cc
@@ -23,6 +23,8 @@
#include "media/base/media_switches.h"
#if defined(OS_ANDROID)
+#include "chromecast/crash/android/crash_handler.h"
+#include "components/crash/browser/crash_dump_manager_android.h"
#include "net/android/network_change_notifier_factory_android.h"
#endif // defined(OS_ANDROID)
@@ -109,6 +111,16 @@ void CastBrowserMainParts::PreMainMessageLoopRun() {
content::BrowserThread::GetBlockingPool(),
ChromecastConfig::GetInstance()->pref_service(),
cast_browser_process_->browser_context()->GetRequestContext()));
+
+#if defined(OS_ANDROID)
+ base::FilePath crash_dumps_dir;
+ if (!chromecast::CrashHandler::GetCrashDumpLocation(&crash_dumps_dir)) {
+ LOG(ERROR) << "Could not find crash dump location.";
+ }
+ cast_browser_process_->SetCrashDumpManager(
+ new breakpad::CrashDumpManager(crash_dumps_dir));
+#endif
+
cast_browser_process_->SetRemoteDebuggingServer(new RemoteDebuggingServer());
InitializeWebUI();