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

Unified Diff: chrome/browser/automation/automation_provider_observers.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: chrome/browser/automation/automation_provider_observers.cc
===================================================================
--- chrome/browser/automation/automation_provider_observers.cc (revision 189692)
+++ chrome/browser/automation/automation_provider_observers.cc (working copy)
@@ -2558,8 +2558,10 @@
std::string process_type = "Unknown";
// The following condition avoids a DCHECK in debug builds when the
// process type passed to |GetTypeNameInEnglish| is unknown.
- if (iterator->type != content::PROCESS_TYPE_UNKNOWN)
- process_type = content::GetProcessTypeNameInEnglish(iterator->type);
+ if (iterator->process_type != content::PROCESS_TYPE_UNKNOWN) {
+ process_type =
+ content::GetProcessTypeNameInEnglish(iterator->process_type);
+ }
proc_data->SetString("child_process_type", process_type);
// Renderer type, if this is a renderer process.

Powered by Google App Engine
This is Rietveld 408576698