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

Unified Diff: ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider.mm

Issue 2670743002: Track renderer crash detected on WebState via GlobalWebStateObserver (Closed)
Patch Set: remove unnecessary #include Created 3 years, 9 months 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: ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider.mm
diff --git a/ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider.cc b/ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider.mm
similarity index 86%
rename from ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider.cc
rename to ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider.mm
index c7c22b02185ba7cd2a8158ac8fb5c14218a6d10d..e951543988e994c71155f321a76db8d3115e41e7 100644
--- a/ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider.cc
+++ b/ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider.mm
@@ -4,6 +4,8 @@
#include "ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider.h"
+#import "ios/web/public/web_state/web_state.h"
+
IOSChromeStabilityMetricsProvider::IOSChromeStabilityMetricsProvider(
PrefService* local_state)
: helper_(local_state), recording_enabled_(false) {}
@@ -47,3 +49,11 @@ void IOSChromeStabilityMetricsProvider::WebStateDidStartLoading(
helper_.LogLoadStarted();
}
+
+void IOSChromeStabilityMetricsProvider::RenderProcessGone(
+ web::WebState* web_state) {
+ if (!recording_enabled_)
+ return;
+ LogRendererCrash();
+ // TODO(crbug.com/685649): Logs web_state->GetLastCommittedURL().
Eugene But (OOO till 7-30) 2017/03/24 15:37:50 Really nit: s/Logs/Log
pkl (ping after 24h if needed) 2017/03/27 15:32:47 Expanded the comment rendering this irrelevant.
+}

Powered by Google App Engine
This is Rietveld 408576698