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

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: Addressed comments. 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
jam 2012/10/23 01:20:47 nit: extra line
Jay Civelli 2012/10/23 20:39:55 Done.
31
20 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { 32 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() {
21 net::NetworkChangeNotifier::SetFactory( 33 net::NetworkChangeNotifier::SetFactory(
22 new net::NetworkChangeNotifierFactoryAndroid()); 34 new net::NetworkChangeNotifierFactoryAndroid());
23 35
24 // Chrome on Android does not use default MessageLoop. It has its own 36 // Chrome on Android does not use default MessageLoop. It has its own
25 // Android specific MessageLoop. 37 // Android specific MessageLoop.
26 DCHECK(!main_message_loop_.get()); 38 DCHECK(!main_message_loop_.get());
27 main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI)); 39 main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI));
28 MessageLoopForUI::current()->Start(); 40 MessageLoopForUI::current()->Start();
29 41
30 ChromeBrowserMainParts::PreEarlyInitialization(); 42 ChromeBrowserMainParts::PreEarlyInitialization();
31 } 43 }
32 44
33 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { 45 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() {
34 NOTREACHED(); 46 NOTREACHED();
35 } 47 }
36 48
37 void RecordBreakpadStatusUMA(MetricsService* metrics) { 49 void RecordBreakpadStatusUMA(MetricsService* metrics) {
38 // TODO: crbug.com/139023 50 // TODO: crbug.com/139023
39 NOTIMPLEMENTED(); 51 NOTIMPLEMENTED();
40 } 52 }
41 53
42 void WarnAboutMinimumSystemRequirements() { 54 void WarnAboutMinimumSystemRequirements() {
43 } 55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698