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

Side by Side Diff: android_webview/crash_reporter/aw_microdump_crash_reporter.cc

Issue 2557143002: Revert of Do not generate a microdump if there are no webview pointers on the stack. (Closed)
Patch Set: Created 4 years 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/crash_reporter/aw_microdump_crash_reporter.h" 5 #include "android_webview/crash_reporter/aw_microdump_crash_reporter.h"
6 6
7 #include "android_webview/common/aw_version_info_values.h" 7 #include "android_webview/common/aw_version_info_values.h"
8 #include "base/android/build_info.h" 8 #include "base/android/build_info.h"
9 #include "base/debug/dump_without_crashing.h" 9 #include "base/debug/dump_without_crashing.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 breakpad::InitMicrodumpCrashHandlerIfNecessary(process_type); 148 breakpad::InitMicrodumpCrashHandlerIfNecessary(process_type);
149 g_enabled = true; 149 g_enabled = true;
150 } 150 }
151 151
152 void AddGpuFingerprintToMicrodumpCrashHandler( 152 void AddGpuFingerprintToMicrodumpCrashHandler(
153 const std::string& gpu_fingerprint) { 153 const std::string& gpu_fingerprint) {
154 breakpad::AddGpuFingerprintToMicrodumpCrashHandler(gpu_fingerprint); 154 breakpad::AddGpuFingerprintToMicrodumpCrashHandler(gpu_fingerprint);
155 } 155 }
156 156
157 void SetWebViewTextAddrRange(uintptr_t start, uintptr_t end) {
158 breakpad::SetNativeCodeTextAddrRange(start, end);
159 }
160
161 bool DumpWithoutCrashingToFd(int fd) { 157 bool DumpWithoutCrashingToFd(int fd) {
162 return g_crash_reporter_client.Pointer()->DumpWithoutCrashingToFd(fd); 158 return g_crash_reporter_client.Pointer()->DumpWithoutCrashingToFd(fd);
163 } 159 }
164 160
165 } // namespace crash_reporter 161 } // namespace crash_reporter
166 } // namespace android_webview 162 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/crash_reporter/aw_microdump_crash_reporter.h ('k') | android_webview/lib/main/aw_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698