Lines Matching refs:process_type
167 static void AdjustLinuxOOMScore(const std::string& process_type) {
187 if (process_type == switches::kPluginProcess ||
188 process_type == switches::kPpapiPluginProcess) {
190 } else if (process_type == switches::kPpapiBrokerProcess) {
193 } else if (process_type == switches::kUtilityProcess ||
194 process_type == switches::kGpuProcess ||
195 process_type == switches::kServiceProcess) {
198 } else if (process_type == switches::kNaClLoaderProcess ||
199 process_type == switches::kNaClLoaderNonSfiProcess) {
202 } else if (process_type == switches::kZygoteProcess ||
203 process_type.empty()) {
207 } else if (process_type == switches::kRendererProcess) {
224 bool SubprocessNeedsResourceBundle(const std::string& process_type) {
229 process_type == switches::kPluginProcess ||
233 process_type == switches::kZygoteProcess ||
239 process_type == switches::kNaClLoaderProcess ||
241 process_type == switches::kPpapiPluginProcess ||
242 process_type == switches::kPpapiBrokerProcess ||
243 process_type == switches::kGpuProcess ||
245 process_type == switches::kRendererProcess ||
246 process_type == switches::kUtilityProcess;
316 std::string process_type =
357 // The browser process (which is identified by an empty |process_type|) will
359 CHECK(process_type.empty()) << "Unable to get the user data directory "
360 << "for process type: " << process_type;
544 const std::string& process_type) {
549 breakpad::InitCrashReporter(process_type);
591 !process_type.empty())
602 CHECK(process_type == switches::kPluginProcess ||
603 process_type == switches::kUtilityProcess)
606 << switches::kUtilityProcess << ", saw " << process_type;
609 CHECK_EQ(switches::kNaClLoaderProcess, process_type)
611 << switches::kNaClLoaderProcess << ", saw " << process_type;
615 CHECK(process_type != switches::kPluginProcess)
619 CHECK(process_type != switches::kPluginProcess &&
620 process_type != switches::kNaClLoaderProcess)
623 << switches::kNaClLoaderProcess << ", saw " << process_type;
629 process_type.empty())
630 << "Main application forbids --type, saw " << process_type;
634 breakpad::InitCrashProcessInfo(process_type);
640 std::string process_type =
654 InitMacCrashReporter(command_line, process_type);
667 if (chrome::ProcessNeedsProfileDir(process_type))
686 if (process_type.empty()) {
699 if (SubprocessNeedsResourceBundle(process_type)) {
705 process_type == switches::kZygoteProcess ||
706 process_type == switches::kGpuProcess ||
707 process_type == switches::kPpapiBrokerProcess ||
708 process_type == switches::kPpapiPluginProcess);
711 process_type == switches::kZygoteProcess ||
712 process_type == switches::kGpuProcess ||
713 process_type == switches::kNaClLoaderProcess ||
714 process_type == switches::kPpapiBrokerProcess ||
715 process_type == switches::kPpapiPluginProcess);
763 if (process_type == switches::kUtilityProcess ||
764 process_type == switches::kZygoteProcess) {
772 if (process_type != switches::kZygoteProcess) {
774 if (process_type.empty())
775 breakpad::InitCrashReporter(process_type);
777 breakpad::InitNonBrowserCrashReporterForAndroid(process_type);
779 breakpad::InitCrashReporter(process_type);
789 void ChromeMainDelegate::SandboxInitialized(const std::string& process_type) {
795 AdjustLinuxOOMScore(process_type);
803 const std::string& process_type,
830 if (process_type == kMainFunctions[i].name)
838 void ChromeMainDelegate::ProcessExiting(const std::string& process_type) {
839 if (SubprocessNeedsResourceBundle(process_type))
855 const std::string& process_type) {
859 return process_type == switches::kNaClLoaderProcess;
863 bool ChromeMainDelegate::ShouldSendMachPort(const std::string& process_type) {
864 return process_type != switches::kRelauncherProcess &&
865 process_type != switches::kServiceProcess;
869 const std::string& process_type) {
873 if (process_type == switches::kNaClLoaderProcess)
876 return process_type == switches::kRelauncherProcess;
896 std::string process_type =
898 breakpad::InitCrashReporter(process_type);