| 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/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/scoped_native_library.h" | 10 #include "base/scoped_native_library.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "components/crash/content/app/breakpad_linux.h" | 12 #include "components/crash/app/breakpad_linux.h" |
| 13 #include "components/crash/content/app/crash_reporter_client.h" | 13 #include "components/crash/app/crash_reporter_client.h" |
| 14 | 14 |
| 15 namespace android_webview { | 15 namespace android_webview { |
| 16 namespace crash_reporter { | 16 namespace crash_reporter { |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 class AwCrashReporterClient : public ::crash_reporter::CrashReporterClient { | 20 class AwCrashReporterClient : public ::crash_reporter::CrashReporterClient { |
| 21 public: | 21 public: |
| 22 AwCrashReporterClient() {} | 22 AwCrashReporterClient() {} |
| 23 | 23 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 ::crash_reporter::SetCrashReporterClient(g_crash_reporter_client.Pointer()); | 111 ::crash_reporter::SetCrashReporterClient(g_crash_reporter_client.Pointer()); |
| 112 | 112 |
| 113 // |process_type| is not really relevant here, as long as it not empty. | 113 // |process_type| is not really relevant here, as long as it not empty. |
| 114 breakpad::InitNonBrowserCrashReporterForAndroid("webview" /* process_type */); | 114 breakpad::InitNonBrowserCrashReporterForAndroid("webview" /* process_type */); |
| 115 g_enabled = true; | 115 g_enabled = true; |
| 116 } | 116 } |
| 117 | 117 |
| 118 } // namespace crash_reporter | 118 } // namespace crash_reporter |
| 119 } // namespace android_webview | 119 } // namespace android_webview |
| OLD | NEW |