| 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 "content/public/browser/android/compositor.h" | 10 #include "content/public/browser/android/compositor.h" |
| 10 #include "content/public/common/main_function_params.h" | 11 #include "content/public/common/main_function_params.h" |
| 11 #include "net/android/network_change_notifier_factory_android.h" | 12 #include "net/android/network_change_notifier_factory_android.h" |
| 12 #include "net/base/network_change_notifier.h" | 13 #include "net/base/network_change_notifier.h" |
| 13 #include "ui/base/resource/resource_bundle.h" | 14 #include "ui/base/resource/resource_bundle.h" |
| 14 #include "ui/base/ui_base_paths.h" | 15 #include "ui/base/ui_base_paths.h" |
| 15 | 16 |
| 16 ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid( | 17 ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid( |
| 17 const content::MainFunctionParams& parameters) | 18 const content::MainFunctionParams& parameters) |
| 18 : ChromeBrowserMainParts(parameters) { | 19 : ChromeBrowserMainParts(parameters) { |
| 19 } | 20 } |
| 20 | 21 |
| 21 ChromeBrowserMainPartsAndroid::~ChromeBrowserMainPartsAndroid() { | 22 ChromeBrowserMainPartsAndroid::~ChromeBrowserMainPartsAndroid() { |
| 22 } | 23 } |
| 23 | 24 |
| 24 void ChromeBrowserMainPartsAndroid::PreProfileInit() { | 25 void ChromeBrowserMainPartsAndroid::PreProfileInit() { |
| 25 #if defined(USE_LINUX_BREAKPAD) | 26 #if defined(USE_LINUX_BREAKPAD) |
| 26 // TODO(jcivelli): we should not initialize the crash-reporter when it was not | 27 // TODO(jcivelli): we should not initialize the crash-reporter when it was not |
| 27 // enabled. Right now if it is disabled we still generate the minidumps but we | 28 // enabled. Right now if it is disabled we still generate the minidumps but we |
| 28 // do not upload them. | 29 // do not upload them. |
| 29 InitCrashReporter(); | 30 InitCrashReporter(); |
| 31 |
| 32 crash_dump_manager_.reset(new CrashDumpManager()); |
| 30 #endif | 33 #endif |
| 31 | 34 |
| 32 ChromeBrowserMainParts::PreProfileInit(); | 35 ChromeBrowserMainParts::PreProfileInit(); |
| 33 } | 36 } |
| 34 | 37 |
| 35 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { | 38 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { |
| 36 net::NetworkChangeNotifier::SetFactory( | 39 net::NetworkChangeNotifier::SetFactory( |
| 37 new net::NetworkChangeNotifierFactoryAndroid()); | 40 new net::NetworkChangeNotifierFactoryAndroid()); |
| 38 | 41 |
| 39 content::Compositor::Initialize(); | 42 content::Compositor::Initialize(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 65 NOTREACHED(); | 68 NOTREACHED(); |
| 66 } | 69 } |
| 67 | 70 |
| 68 void RecordBreakpadStatusUMA(MetricsService* metrics) { | 71 void RecordBreakpadStatusUMA(MetricsService* metrics) { |
| 69 // TODO: crbug.com/139023 | 72 // TODO: crbug.com/139023 |
| 70 NOTIMPLEMENTED(); | 73 NOTIMPLEMENTED(); |
| 71 } | 74 } |
| 72 | 75 |
| 73 void WarnAboutMinimumSystemRequirements() { | 76 void WarnAboutMinimumSystemRequirements() { |
| 74 } | 77 } |
| OLD | NEW |