summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_browser_main_android.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chrome_browser_main_android.cc')
-rw-r--r--chrome/browser/chrome_browser_main_android.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/chrome/browser/chrome_browser_main_android.cc b/chrome/browser/chrome_browser_main_android.cc
index d99c140..4522b54 100644
--- a/chrome/browser/chrome_browser_main_android.cc
+++ b/chrome/browser/chrome_browser_main_android.cc
@@ -4,7 +4,7 @@
#include "chrome/browser/chrome_browser_main_android.h"
-#include "chrome/common/chrome_switches.h"
+#include "chrome/app/breakpad_linux.h"
#include "content/public/common/main_function_params.h"
#include "net/android/network_change_notifier_factory_android.h"
#include "net/base/network_change_notifier.h"
@@ -17,6 +17,17 @@ ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid(
ChromeBrowserMainPartsAndroid::~ChromeBrowserMainPartsAndroid() {
}
+void ChromeBrowserMainPartsAndroid::PreProfileInit() {
+#if defined(USE_LINUX_BREAKPAD)
+ // TODO(jcivelli): we should not initialize the crash-reporter when it was not
+ // enabled. Right now if it is disabled we still generate the minidumps but we
+ // do not upload them.
+ InitCrashReporter();
+#endif
+
+ ChromeBrowserMainParts::PreProfileInit();
+}
+
void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() {
net::NetworkChangeNotifier::SetFactory(
new net::NetworkChangeNotifierFactoryAndroid());