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

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

Issue 2552753002: Do not generate a microdump if there are no webview pointers on the stack. (Closed)
Patch Set: set suppression flag 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::SetWebViewTextAddrRange(start, end);
159 }
160
157 bool DumpWithoutCrashingToFd(int fd) { 161 bool DumpWithoutCrashingToFd(int fd) {
158 return g_crash_reporter_client.Pointer()->DumpWithoutCrashingToFd(fd); 162 return g_crash_reporter_client.Pointer()->DumpWithoutCrashingToFd(fd);
159 } 163 }
160 164
161 } // namespace crash_reporter 165 } // namespace crash_reporter
162 } // namespace android_webview 166 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698