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

Unified Diff: content/common/process_type.cc

Issue 12662019: Split the ProcessType enum into process types that content knows about (which will remain in src\co… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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: content/common/process_type.cc
===================================================================
--- content/common/process_type.cc (revision 189692)
+++ content/common/process_type.cc (working copy)
@@ -5,10 +5,11 @@
#include "content/public/common/process_type.h"
#include "base/logging.h"
+#include "content/public/common/content_client.h"
namespace content {
-std::string GetProcessTypeNameInEnglish(ProcessType type) {
+std::string GetProcessTypeNameInEnglish(int type) {
switch (type) {
case PROCESS_TYPE_BROWSER:
return "Browser";
@@ -20,16 +21,10 @@
return "Web Worker";
case PROCESS_TYPE_UTILITY:
return "Utility";
- case PROCESS_TYPE_PROFILE_IMPORT:
- return "Profile Import helper";
case PROCESS_TYPE_ZYGOTE:
return "Zygote";
case PROCESS_TYPE_SANDBOX_HELPER:
return "Sandbox helper";
- case PROCESS_TYPE_NACL_LOADER:
- return "Native Client module";
- case PROCESS_TYPE_NACL_BROKER:
- return "Native Client broker";
case PROCESS_TYPE_GPU:
return "GPU";
case PROCESS_TYPE_PPAPI_PLUGIN:
@@ -37,10 +32,11 @@
case PROCESS_TYPE_PPAPI_BROKER:
return "Pepper Plugin Broker";
case PROCESS_TYPE_UNKNOWN:
- default:
DCHECK(false) << "Unknown child process type!";
return "Unknown";
}
+
+ return content::GetContentClient()->GetProcessTypeNameInEnglish(type);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698