| 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/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 Loading... |
| 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 |
| OLD | NEW |