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

Unified Diff: chrome/app/chrome_main_delegate.cc

Issue 1459793002: Android: Allow compiling browser without Java UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
Index: chrome/app/chrome_main_delegate.cc
diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
index cb27994b8fdcd829186db4620c494a8624350bfc..dac1cb2f33206defdb90b641449d4e18ae46b4ef 100644
--- a/chrome/app/chrome_main_delegate.cc
+++ b/chrome/app/chrome_main_delegate.cc
@@ -88,8 +88,11 @@
#include "chromeos/chromeos_switches.h"
#endif
-#if defined(OS_ANDROID)
+#if defined(ANDROID_JAVA_UI)
#include "chrome/browser/android/java_exception_reporter.h"
+#endif
+
+#if defined(OS_ANDROID)
#include "chrome/common/descriptors_android.h"
#else
// Diagnostics is only available on non-android platforms.
@@ -792,7 +795,9 @@ void ChromeMainDelegate::PreSandboxStartup() {
#if defined(OS_ANDROID)
if (process_type.empty()) {
breakpad::InitCrashReporter(process_type);
+#if defined(ANDROID_JAVA_UI)
Ted C 2015/11/30 19:39:04 You always want this.
no sievers 2015/11/30 23:56:34 Yes, but it wouldn't work as is because I'm removi
chrome::android::InitJavaExceptionReporter();
+#endif
} else {
breakpad::InitNonBrowserCrashReporterForAndroid(process_type);
}

Powered by Google App Engine
This is Rietveld 408576698