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

Side by Side Diff: chrome/browser/chrome_browser_main_android.cc

Issue 11189068: Changing minidump process generation to be in-process on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced again. Created 8 years, 2 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/common/chrome_switches.h" 7 #include "chrome/app/breakpad_linux.h"
8 #include "content/public/common/main_function_params.h" 8 #include "content/public/common/main_function_params.h"
9 #include "net/android/network_change_notifier_factory_android.h" 9 #include "net/android/network_change_notifier_factory_android.h"
10 #include "net/base/network_change_notifier.h" 10 #include "net/base/network_change_notifier.h"
11 11
12 ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid( 12 ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid(
13 const content::MainFunctionParams& parameters) 13 const content::MainFunctionParams& parameters)
14 : ChromeBrowserMainParts(parameters) { 14 : ChromeBrowserMainParts(parameters) {
15 } 15 }
16 16
17 ChromeBrowserMainPartsAndroid::~ChromeBrowserMainPartsAndroid() { 17 ChromeBrowserMainPartsAndroid::~ChromeBrowserMainPartsAndroid() {
18 } 18 }
19 19
20 void ChromeBrowserMainPartsAndroid::PreProfileInit() {
21 #if defined(USE_LINUX_BREAKPAD)
22 // TODO(jcivelli): we should not initialize the crash-reporter when it was not
23 // enabled. Right now if it is disabled we still generate the minidumps but we
24 // do not upload them.
25 InitCrashReporter();
26 #endif
27
28 ChromeBrowserMainParts::PreProfileInit();
29 }
30
20 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { 31 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() {
21 net::NetworkChangeNotifier::SetFactory( 32 net::NetworkChangeNotifier::SetFactory(
22 new net::NetworkChangeNotifierFactoryAndroid()); 33 new net::NetworkChangeNotifierFactoryAndroid());
23 34
24 // Chrome on Android does not use default MessageLoop. It has its own 35 // Chrome on Android does not use default MessageLoop. It has its own
25 // Android specific MessageLoop. 36 // Android specific MessageLoop.
26 DCHECK(!main_message_loop_.get()); 37 DCHECK(!main_message_loop_.get());
27 main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI)); 38 main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI));
28 MessageLoopForUI::current()->Start(); 39 MessageLoopForUI::current()->Start();
29 40
30 ChromeBrowserMainParts::PreEarlyInitialization(); 41 ChromeBrowserMainParts::PreEarlyInitialization();
31 } 42 }
32 43
33 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { 44 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() {
34 NOTREACHED(); 45 NOTREACHED();
35 } 46 }
36 47
37 void RecordBreakpadStatusUMA(MetricsService* metrics) { 48 void RecordBreakpadStatusUMA(MetricsService* metrics) {
38 // TODO: crbug.com/139023 49 // TODO: crbug.com/139023
39 NOTIMPLEMENTED(); 50 NOTIMPLEMENTED();
40 } 51 }
41 52
42 void WarnAboutMinimumSystemRequirements() { 53 void WarnAboutMinimumSystemRequirements() {
43 } 54 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_android.h ('k') | chrome/browser/chrome_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698