| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chrome_browser_main_android.h" | 5 #include "chrome/browser/chrome_browser_main_android.h" |
| 6 | 6 |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "chrome/app/breakpad_linux.h" | 8 #include "chrome/app/breakpad_linux.h" |
| 9 #include "chrome/browser/android/crash_dump_manager.h" |
| 9 #include "chrome/common/env_vars.h" | 10 #include "chrome/common/env_vars.h" |
| 10 #include "content/public/browser/android/compositor.h" | 11 #include "content/public/browser/android/compositor.h" |
| 11 #include "content/public/common/main_function_params.h" | 12 #include "content/public/common/main_function_params.h" |
| 12 #include "net/android/network_change_notifier_factory_android.h" | 13 #include "net/android/network_change_notifier_factory_android.h" |
| 13 #include "net/base/network_change_notifier.h" | 14 #include "net/base/network_change_notifier.h" |
| 14 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 15 #include "ui/base/ui_base_paths.h" | 16 #include "ui/base/ui_base_paths.h" |
| 16 | 17 |
| 17 ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid( | 18 ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid( |
| 18 const content::MainFunctionParams& parameters) | 19 const content::MainFunctionParams& parameters) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 29 // enabled. Right now if it is disabled we still generate the minidumps but we | 30 // enabled. Right now if it is disabled we still generate the minidumps but we |
| 30 // do not upload them. | 31 // do not upload them. |
| 31 bool breakpad_enabled = true; | 32 bool breakpad_enabled = true; |
| 32 #else | 33 #else |
| 33 bool breakpad_enabled = false; | 34 bool breakpad_enabled = false; |
| 34 #endif | 35 #endif |
| 35 // Allow Breakpad to be enabled in Chromium builds for testing purposes. | 36 // Allow Breakpad to be enabled in Chromium builds for testing purposes. |
| 36 if (!breakpad_enabled) | 37 if (!breakpad_enabled) |
| 37 breakpad_enabled = getenv(env_vars::kEnableBreakpad) != NULL; | 38 breakpad_enabled = getenv(env_vars::kEnableBreakpad) != NULL; |
| 38 | 39 |
| 39 if (breakpad_enabled) | 40 if (breakpad_enabled) { |
| 40 InitCrashReporter(); | 41 InitCrashReporter(); |
| 42 crash_dump_manager_.reset(new CrashDumpManager()); |
| 43 } |
| 41 #endif | 44 #endif |
| 42 | 45 |
| 43 ChromeBrowserMainParts::PreProfileInit(); | 46 ChromeBrowserMainParts::PreProfileInit(); |
| 44 } | 47 } |
| 45 | 48 |
| 46 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { | 49 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { |
| 47 net::NetworkChangeNotifier::SetFactory( | 50 net::NetworkChangeNotifier::SetFactory( |
| 48 new net::NetworkChangeNotifierFactoryAndroid()); | 51 new net::NetworkChangeNotifierFactoryAndroid()); |
| 49 | 52 |
| 50 content::Compositor::Initialize(); | 53 content::Compositor::Initialize(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 76 NOTREACHED(); | 79 NOTREACHED(); |
| 77 } | 80 } |
| 78 | 81 |
| 79 void RecordBreakpadStatusUMA(MetricsService* metrics) { | 82 void RecordBreakpadStatusUMA(MetricsService* metrics) { |
| 80 // TODO: crbug.com/139023 | 83 // TODO: crbug.com/139023 |
| 81 NOTIMPLEMENTED(); | 84 NOTIMPLEMENTED(); |
| 82 } | 85 } |
| 83 | 86 |
| 84 void WarnAboutMinimumSystemRequirements() { | 87 void WarnAboutMinimumSystemRequirements() { |
| 85 } | 88 } |
| OLD | NEW |