Commit 4b66ae61 authored by Joshua Peraza's avatar Joshua Peraza Committed by Commit Bot

weblayer: initialize crash keys

Change-Id: Ifd7e98467fc83c7341cc96c273062add52c98e0a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2072668Reviewed-by: default avatarRichard Coles <torne@chromium.org>
Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
Commit-Queue: Joshua Peraza <jperaza@chromium.org>
Cr-Commit-Position: refs/heads/master@{#744773}
parent 6225f6c9
...@@ -238,6 +238,7 @@ jumbo_static_library("weblayer_lib") { ...@@ -238,6 +238,7 @@ jumbo_static_library("weblayer_lib") {
"//components/content_settings/core/browser", "//components/content_settings/core/browser",
"//components/crash/content/app", "//components/crash/content/app",
"//components/crash/content/browser", "//components/crash/content/browser",
"//components/crash/core/common",
"//components/embedder_support", "//components/embedder_support",
"//components/find_in_page", "//components/find_in_page",
"//components/keyed_service/content", "//components/keyed_service/content",
......
...@@ -8,6 +8,7 @@ include_rules = [ ...@@ -8,6 +8,7 @@ include_rules = [
"+components/browser_ui", "+components/browser_ui",
"+components/captive_portal", "+components/captive_portal",
"+components/crash/content/browser", "+components/crash/content/browser",
"+components/crash/core/common",
"+components/download/public/common", "+components/download/public/common",
"+components/embedder_support", "+components/embedder_support",
"+components/find_in_page", "+components/find_in_page",
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
#include "components/crash/content/browser/child_exit_observer_android.h" #include "components/crash/content/browser/child_exit_observer_android.h"
#include "components/crash/content/browser/child_process_crash_observer_android.h" #include "components/crash/content/browser/child_process_crash_observer_android.h"
#include "components/crash/core/common/crash_key.h"
#include "components/javascript_dialogs/android/app_modal_dialog_view_android.h" // nogncheck #include "components/javascript_dialogs/android/app_modal_dialog_view_android.h" // nogncheck
#include "components/javascript_dialogs/app_modal_dialog_manager.h" // nogncheck #include "components/javascript_dialogs/app_modal_dialog_manager.h" // nogncheck
#include "content/public/browser/web_contents.h" #include "content/public/browser/web_contents.h"
...@@ -94,6 +95,8 @@ int BrowserMainPartsImpl::PreCreateThreads() { ...@@ -94,6 +95,8 @@ int BrowserMainPartsImpl::PreCreateThreads() {
crash_reporter::ChildExitObserver::Create(); crash_reporter::ChildExitObserver::Create();
crash_reporter::ChildExitObserver::GetInstance()->RegisterClient( crash_reporter::ChildExitObserver::GetInstance()->RegisterClient(
std::make_unique<crash_reporter::ChildProcessCrashObserver>()); std::make_unique<crash_reporter::ChildProcessCrashObserver>());
crash_reporter::InitializeCrashKeys();
#endif #endif
return service_manager::RESULT_CODE_NORMAL_EXIT; return service_manager::RESULT_CODE_NORMAL_EXIT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment