| Index: chrome/common/chrome_content_client.cc
|
| ===================================================================
|
| --- chrome/common/chrome_content_client.cc (revision 189692)
|
| +++ chrome/common/chrome_content_client.cc (working copy)
|
| @@ -17,6 +17,7 @@
|
| #include "build/build_config.h"
|
| #include "chrome/common/child_process_logging.h"
|
| #include "chrome/common/chrome_paths.h"
|
| +#include "chrome/common/chrome_process_type.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/chrome_version_info.h"
|
| #include "chrome/common/pepper_flash.h"
|
| @@ -444,6 +445,20 @@
|
| return ResourceBundle::GetSharedInstance().GetNativeImageNamed(resource_id);
|
| }
|
|
|
| +std::string ChromeContentClient::GetProcessTypeNameInEnglish(int type) {
|
| + switch(type) {
|
| + case PROCESS_TYPE_PROFILE_IMPORT:
|
| + return "Profile Import helper";
|
| + case PROCESS_TYPE_NACL_LOADER:
|
| + return "Native Client module";
|
| + case PROCESS_TYPE_NACL_BROKER:
|
| + return "Native Client broker";
|
| + }
|
| +
|
| + DCHECK(false) << "Unknown child process type!";
|
| + return "Unknown";
|
| +}
|
| +
|
| #if defined(OS_MACOSX) && !defined(OS_IOS)
|
| bool ChromeContentClient::GetSandboxProfileForSandboxType(
|
| int sandbox_type,
|
|
|