Index: chrome/browser/chrome_browser_main_android.cc |
diff --git a/chrome/browser/chrome_browser_main_android.cc b/chrome/browser/chrome_browser_main_android.cc |
index 42dd90f99b7b37d267bb8068a5983752a55f2c4d..8220faca88e34c352c1e5f102690bb8eb197a2a5 100644 |
--- a/chrome/browser/chrome_browser_main_android.cc |
+++ b/chrome/browser/chrome_browser_main_android.cc |
@@ -4,10 +4,11 @@ |
#include "chrome/browser/chrome_browser_main_android.h" |
+#include "base/command_line.h" |
#include "base/path_service.h" |
#include "chrome/app/breakpad_linux.h" |
#include "chrome/browser/android/crash_dump_manager.h" |
-#include "chrome/common/env_vars.h" |
+#include "chrome/common/chrome_switches.h" |
#include "content/public/browser/android/compositor.h" |
#include "content/public/common/main_function_params.h" |
#include "net/android/network_change_notifier_factory_android.h" |
@@ -33,9 +34,11 @@ void ChromeBrowserMainPartsAndroid::PreProfileInit() { |
#else |
bool breakpad_enabled = false; |
#endif |
+ |
// Allow Breakpad to be enabled in Chromium builds for testing purposes. |
if (!breakpad_enabled) |
- breakpad_enabled = getenv(env_vars::kEnableBreakpad) != NULL; |
+ breakpad_enabled = CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableCrashReporterForTesting); |
if (breakpad_enabled) { |
InitCrashReporter(); |