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

Unified Diff: chrome/browser/metrics/metrics_service.cc

Issue 8770027: Get rid of the ChildProcessInfo class. It was carrying unnecessary data, and the fact that some p... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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: chrome/browser/metrics/metrics_service.cc
===================================================================
--- chrome/browser/metrics/metrics_service.cc (revision 112500)
+++ chrome/browser/metrics/metrics_service.cc (working copy)
@@ -1339,13 +1339,13 @@
int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
- content::Details<ChildProcessInfo> child_details(details);
- const string16& child_name = child_details->name();
+ content::Details<content::ChildProcessData> child_details(details);
+ const string16& child_name = child_details->name;
if (child_process_stats_buffer_.find(child_name) ==
child_process_stats_buffer_.end()) {
child_process_stats_buffer_[child_name] =
- ChildProcessStats(child_details->type());
+ ChildProcessStats(child_details->type);
}
ChildProcessStats& stats = child_process_stats_buffer_[child_name];
@@ -1362,7 +1362,7 @@
stats.process_crashes++;
// Exclude plugin crashes from the count below because we report them via
// a separate UMA metric.
- if (!IsPluginProcess(child_details->type())) {
+ if (!IsPluginProcess(child_details->type)) {
IncrementPrefValue(prefs::kStabilityChildProcessCrashCount);
}
break;

Powered by Google App Engine
This is Rietveld 408576698