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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 108683003: Store gpu crashes in the systemprofileproto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Alexei comments1 Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index 1b7da1c8d7c1955e64182bf681ac4e0070248a5e..ccafc96592026647f01299f126276eecc9020011 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -28,6 +28,8 @@
#include "content/port/browser/render_widget_host_view_frame_subscriber.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
+#include "content/public/browser/notification_service.h"
+#include "content/public/browser/notification_types.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/common/content_client.h"
@@ -520,10 +522,10 @@ GpuProcessHost::~GpuProcessHost() {
}
std::string message;
+ base::TerminationStatus status = base::TERMINATION_STATUS_NORMAL_TERMINATION;
if (!in_process_) {
int exit_code;
- base::TerminationStatus status = process_->GetTerminationStatus(
- false /* known_dead */, &exit_code);
+ status = process_->GetTerminationStatus(false /* known_dead */, &exit_code);
UMA_HISTOGRAM_ENUMERATION("GPU.GPUProcessTerminationStatus",
status,
base::TERMINATION_STATUS_MAX_ENUM);
@@ -559,6 +561,7 @@ GpuProcessHost::~GpuProcessHost() {
FROM_HERE,
base::Bind(&GpuProcessHostUIShim::Destroy,
host_id_,
+ status,
message));
}

Powered by Google App Engine
This is Rietveld 408576698