OLD | NEW |
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/common/crash_reporter/aw_microdump_crash_reporter.h" | 5 #include "android_webview/common/crash_reporter/aw_microdump_crash_reporter.h" |
6 | 6 |
7 #include "android_webview/common/aw_descriptors.h" | 7 #include "android_webview/common/aw_descriptors.h" |
8 #include "android_webview/common/aw_paths.h" | 8 #include "android_webview/common/aw_paths.h" |
9 #include "android_webview/common/aw_version_info_values.h" | 9 #include "android_webview/common/aw_version_info_values.h" |
10 #include "android_webview/common/crash_reporter/crash_keys.h" | 10 #include "android_webview/common/crash_reporter/crash_keys.h" |
(...skipping 188 matching lines...) Loading... |
199 bool GetCrashDumpLocation(base::FilePath* crash_dir) { | 199 bool GetCrashDumpLocation(base::FilePath* crash_dir) { |
200 return g_crash_reporter_client.Get().GetCrashDumpLocation(crash_dir); | 200 return g_crash_reporter_client.Get().GetCrashDumpLocation(crash_dir); |
201 } | 201 } |
202 | 202 |
203 void AddGpuFingerprintToMicrodumpCrashHandler( | 203 void AddGpuFingerprintToMicrodumpCrashHandler( |
204 const std::string& gpu_fingerprint) { | 204 const std::string& gpu_fingerprint) { |
205 breakpad::AddGpuFingerprintToMicrodumpCrashHandler(gpu_fingerprint); | 205 breakpad::AddGpuFingerprintToMicrodumpCrashHandler(gpu_fingerprint); |
206 } | 206 } |
207 | 207 |
208 bool DumpWithoutCrashingToFd(int fd) { | 208 bool DumpWithoutCrashingToFd(int fd) { |
| 209 ::crash_reporter::SetCrashReporterClient(g_crash_reporter_client.Pointer()); |
209 return g_crash_reporter_client.Pointer()->DumpWithoutCrashingToFd(fd); | 210 return g_crash_reporter_client.Pointer()->DumpWithoutCrashingToFd(fd); |
210 } | 211 } |
211 | 212 |
212 bool IsCrashReporterEnabled() { | 213 bool IsCrashReporterEnabled() { |
213 return breakpad::IsCrashReporterEnabled(); | 214 return breakpad::IsCrashReporterEnabled(); |
214 } | 215 } |
215 | 216 |
216 void SuppressDumpGeneration() { | 217 void SuppressDumpGeneration() { |
217 breakpad::SuppressDumpGeneration(); | 218 breakpad::SuppressDumpGeneration(); |
218 } | 219 } |
219 | 220 |
220 } // namespace crash_reporter | 221 } // namespace crash_reporter |
221 } // namespace android_webview | 222 } // namespace android_webview |
OLD | NEW |