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

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

Issue 31243002: Move Linux/Android breakpad implementation to breakpad component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "cc/base/switches.h" 10 #include "cc/base/switches.h"
11 #include "chrome/app/breakpad_linux.h"
12 #include "chrome/browser/android/crash_dump_manager.h"
13 #include "chrome/common/chrome_paths.h" 11 #include "chrome/common/chrome_paths.h"
14 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
13 #include "components/breakpad/app/breakpad_linux.h"
14 #include "components/breakpad/browser/crash_dump_manager_android.h"
15 #include "content/public/browser/android/compositor.h" 15 #include "content/public/browser/android/compositor.h"
16 #include "content/public/common/main_function_params.h" 16 #include "content/public/common/main_function_params.h"
17 #include "net/android/network_change_notifier_factory_android.h" 17 #include "net/android/network_change_notifier_factory_android.h"
18 #include "net/base/network_change_notifier.h" 18 #include "net/base/network_change_notifier.h"
19 #include "ui/base/resource/resource_bundle.h" 19 #include "ui/base/resource/resource_bundle.h"
20 #include "ui/base/ui_base_paths.h" 20 #include "ui/base/ui_base_paths.h"
21 21
22 ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid( 22 ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid(
23 const content::MainFunctionParams& parameters) 23 const content::MainFunctionParams& parameters)
24 : ChromeBrowserMainParts(parameters) { 24 : ChromeBrowserMainParts(parameters) {
(...skipping 12 matching lines...) Expand all
37 #else 37 #else
38 bool breakpad_enabled = false; 38 bool breakpad_enabled = false;
39 #endif 39 #endif
40 40
41 // Allow Breakpad to be enabled in Chromium builds for testing purposes. 41 // Allow Breakpad to be enabled in Chromium builds for testing purposes.
42 if (!breakpad_enabled) 42 if (!breakpad_enabled)
43 breakpad_enabled = CommandLine::ForCurrentProcess()->HasSwitch( 43 breakpad_enabled = CommandLine::ForCurrentProcess()->HasSwitch(
44 switches::kEnableCrashReporterForTesting); 44 switches::kEnableCrashReporterForTesting);
45 45
46 if (breakpad_enabled) { 46 if (breakpad_enabled) {
47 InitCrashReporter(); 47 breakpad::InitCrashReporter();
48 base::FilePath crash_dump_dir; 48 base::FilePath crash_dump_dir;
49 PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dump_dir); 49 PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dump_dir);
50 crash_dump_manager_.reset(new CrashDumpManager(crash_dump_dir)); 50 crash_dump_manager_.reset(new breakpad::CrashDumpManager(crash_dump_dir));
51 } 51 }
52 52
53 ChromeBrowserMainParts::PreProfileInit(); 53 ChromeBrowserMainParts::PreProfileInit();
54 } 54 }
55 55
56 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { 56 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() {
57 TRACE_EVENT0("startup", 57 TRACE_EVENT0("startup",
58 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization") 58 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization")
59 net::NetworkChangeNotifier::SetFactory( 59 net::NetworkChangeNotifier::SetFactory(
60 new net::NetworkChangeNotifierFactoryAndroid()); 60 new net::NetworkChangeNotifierFactoryAndroid());
(...skipping 20 matching lines...) Expand all
81 81
82 CommandLine::ForCurrentProcess()->AppendSwitch( 82 CommandLine::ForCurrentProcess()->AppendSwitch(
83 cc::switches::kCompositeToMailbox); 83 cc::switches::kCompositeToMailbox);
84 84
85 ChromeBrowserMainParts::PreEarlyInitialization(); 85 ChromeBrowserMainParts::PreEarlyInitialization();
86 } 86 }
87 87
88 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { 88 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() {
89 NOTREACHED(); 89 NOTREACHED();
90 } 90 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_android.h ('k') | chrome/browser/chrome_browser_main_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698