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

Unified Diff: shell/android/main.cc

Issue 1227333002: Add breakpad support to mojo shell apk. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 5 years, 5 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
« no previous file with comments | « shell/BUILD.gn ('k') | shell/crash/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/android/main.cc
diff --git a/shell/android/main.cc b/shell/android/main.cc
index 6b713c07e1afbb1afa97a54fb9bfe21c0ce39928..173eb08a56a258ccebafda2054b57ea39630ede0 100644
--- a/shell/android/main.cc
+++ b/shell/android/main.cc
@@ -31,6 +31,7 @@
#include "shell/background_application_loader.h"
#include "shell/command_line_util.h"
#include "shell/context.h"
+#include "shell/crash/breakpad.h"
#include "shell/init.h"
#include "shell/switches.h"
#include "shell/tracer.h"
@@ -237,6 +238,10 @@ static void Init(JNIEnv* env,
base::CommandLine::Init(0, nullptr);
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
command_line->InitFromArgv(parameters);
+
+ base::FilePath dumps_path = base::FilePath(tmp_dir).Append("breakpad_dumps");
+ breakpad::InitCrashReporter(dumps_path);
+
Tracer* tracer = new Tracer;
g_internal_data.Get().tracer.reset(tracer);
bool trace_startup = command_line->HasSwitch(switches::kTraceStartup);
« no previous file with comments | « shell/BUILD.gn ('k') | shell/crash/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698