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

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

Issue 8760011: Move the ProcessType enum out to its own file. This is in preparation for getting rid of ChildPro... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac 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
« no previous file with comments | « chrome/browser/metrics/metrics_service.h ('k') | chrome/browser/metrics/metrics_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_service.cc
===================================================================
--- chrome/browser/metrics/metrics_service.cc (revision 112315)
+++ chrome/browser/metrics/metrics_service.cc (working copy)
@@ -232,7 +232,7 @@
// reported to the UMA server on next launch.
struct MetricsService::ChildProcessStats {
public:
- explicit ChildProcessStats(ChildProcessInfo::ProcessType type)
+ explicit ChildProcessStats(content::ProcessType type)
: process_launches(0),
process_crashes(0),
instances(0),
@@ -244,7 +244,7 @@
: process_launches(0),
process_crashes(0),
instances(0),
- process_type(ChildProcessInfo::UNKNOWN_PROCESS) {}
+ process_type(content::PROCESS_TYPE_UNKNOWN) {}
// The number of times that the given child process has been launched
int process_launches;
@@ -257,7 +257,7 @@
// load.
int instances;
- ChildProcessInfo::ProcessType process_type;
+ content::ProcessType process_type;
};
// Handles asynchronous fetching of memory details.
@@ -1526,9 +1526,9 @@
}
// static
-bool MetricsService::IsPluginProcess(ChildProcessInfo::ProcessType type) {
- return (type == ChildProcessInfo::PLUGIN_PROCESS ||
- type == ChildProcessInfo::PPAPI_PLUGIN_PROCESS);
+bool MetricsService::IsPluginProcess(content::ProcessType type) {
+ return (type == content::PROCESS_TYPE_PLUGIN||
+ type == content::PROCESS_TYPE_PPAPI_PLUGIN);
}
static bool IsSingleThreaded() {
« no previous file with comments | « chrome/browser/metrics/metrics_service.h ('k') | chrome/browser/metrics/metrics_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698