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

Side by Side Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 902093003: [android-webview] Enable breakpad microdump crash reporting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@crash_refactor_for_webview
Patch Set: Fix aw_microdump_crash_reporter_disabled_in_android_builds Created 5 years, 10 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
« no previous file with comments | « android_webview/crash_reporter/aw_microdump_crash_reporter_disabled_in_android_builds.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "android_webview/lib/main/aw_main_delegate.h" 5 #include "android_webview/lib/main/aw_main_delegate.h"
6 6
7 #include "android_webview/browser/aw_content_browser_client.h" 7 #include "android_webview/browser/aw_content_browser_client.h"
8 #include "android_webview/browser/browser_view_renderer.h" 8 #include "android_webview/browser/browser_view_renderer.h"
9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" 9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
10 #include "android_webview/crash_reporter/aw_microdump_crash_reporter.h"
10 #include "android_webview/lib/aw_browser_dependency_factory_impl.h" 11 #include "android_webview/lib/aw_browser_dependency_factory_impl.h"
11 #include "android_webview/native/aw_assets.h" 12 #include "android_webview/native/aw_assets.h"
12 #include "android_webview/native/aw_media_url_interceptor.h" 13 #include "android_webview/native/aw_media_url_interceptor.h"
13 #include "android_webview/native/aw_message_port_service_impl.h" 14 #include "android_webview/native/aw_message_port_service_impl.h"
14 #include "android_webview/native/aw_quota_manager_bridge_impl.h" 15 #include "android_webview/native/aw_quota_manager_bridge_impl.h"
15 #include "android_webview/native/aw_web_contents_view_delegate.h" 16 #include "android_webview/native/aw_web_contents_view_delegate.h"
16 #include "android_webview/native/aw_web_preferences_populater_impl.h" 17 #include "android_webview/native/aw_web_preferences_populater_impl.h"
17 #include "android_webview/native/external_video_surface_container_impl.h" 18 #include "android_webview/native/external_video_surface_container_impl.h"
18 #include "android_webview/renderer/aw_content_renderer_client.h" 19 #include "android_webview/renderer/aw_content_renderer_client.h"
19 #include "base/command_line.h" 20 #include "base/command_line.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 107 }
107 108
108 void AwMainDelegate::PreSandboxStartup() { 109 void AwMainDelegate::PreSandboxStartup() {
109 // TODO(torne): When we have a separate renderer process, we need to handle 110 // TODO(torne): When we have a separate renderer process, we need to handle
110 // being passed open FDs for the resource paks here. 111 // being passed open FDs for the resource paks here.
111 #if defined(ARCH_CPU_ARM_FAMILY) 112 #if defined(ARCH_CPU_ARM_FAMILY)
112 // Create an instance of the CPU class to parse /proc/cpuinfo and cache 113 // Create an instance of the CPU class to parse /proc/cpuinfo and cache
113 // cpu_brand info. 114 // cpu_brand info.
114 base::CPU cpu_info; 115 base::CPU cpu_info;
115 #endif 116 #endif
117
118 crash_reporter::EnableMicrodumpCrashReporter();
116 } 119 }
117 120
118 void AwMainDelegate::SandboxInitialized(const std::string& process_type) { 121 void AwMainDelegate::SandboxInitialized(const std::string& process_type) {
119 // TODO(torne): Adjust linux OOM score here. 122 // TODO(torne): Adjust linux OOM score here.
120 } 123 }
121 124
122 int AwMainDelegate::RunProcess( 125 int AwMainDelegate::RunProcess(
123 const std::string& process_type, 126 const std::string& process_type,
124 const content::MainFunctionParams& main_function_params) { 127 const content::MainFunctionParams& main_function_params) {
125 if (process_type.empty()) { 128 if (process_type.empty()) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 181
179 #if defined(VIDEO_HOLE) 182 #if defined(VIDEO_HOLE)
180 content::ExternalVideoSurfaceContainer* 183 content::ExternalVideoSurfaceContainer*
181 AwMainDelegate::CreateExternalVideoSurfaceContainer( 184 AwMainDelegate::CreateExternalVideoSurfaceContainer(
182 content::WebContents* web_contents) { 185 content::WebContents* web_contents) {
183 return new ExternalVideoSurfaceContainerImpl(web_contents); 186 return new ExternalVideoSurfaceContainerImpl(web_contents);
184 } 187 }
185 #endif 188 #endif
186 189
187 } // namespace android_webview 190 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/crash_reporter/aw_microdump_crash_reporter_disabled_in_android_builds.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698