Index: chrome/browser/automation/testing_automation_provider.cc |
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc |
index 71f1eac11174b98dae71ea7744705355676193f2..c1f805d000d8bf2fcef454ff43895da6c5478ae5 100644 |
--- a/chrome/browser/automation/testing_automation_provider.cc |
+++ b/chrome/browser/automation/testing_automation_provider.cc |
@@ -2256,6 +2256,8 @@ void TestingAutomationProvider::SendJSONRequest(int handle, |
&TestingAutomationProvider::CreateNewAutomationProvider; |
handler_map["GetBrowserInfo"] = |
&TestingAutomationProvider::GetBrowserInfo; |
+ handler_map["GetProcessInfo"] = |
+ &TestingAutomationProvider::GetProcessInfo; |
#if defined(OS_CHROMEOS) |
handler_map["GetLoginInfo"] = &TestingAutomationProvider::GetLoginInfo; |
handler_map["ShowCreateAccountUI"] = |
@@ -2874,6 +2876,17 @@ void TestingAutomationProvider::GetBrowserInfo( |
AutomationJSONReply(this, reply_message).SendSuccess(return_value.get()); |
} |
+// Sample json input: { "command": "GetProcessInfo" } |
+// Refer to GetProcessInfo() in chrome/test/pyautolib/pyauto.py for |
+// sample json output. |
+void TestingAutomationProvider::GetProcessInfo( |
+ DictionaryValue* args, |
+ IPC::Message* reply_message) { |
+ scoped_refptr<ProcessInfoObserver> |
+ proc_observer(new ProcessInfoObserver(this, reply_message)); |
+ proc_observer->StartFetch(); |
+} |
+ |
// Sample json input: { "command": "GetNavigationInfo" } |
// Refer to GetNavigationInfo() in chrome/test/pyautolib/pyauto.py for |
// sample json output. |