diff options
Diffstat (limited to 'chrome/browser/automation/testing_automation_provider.cc')
-rw-r--r-- | chrome/browser/automation/testing_automation_provider.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc index bd4e2d3..8d22f6e 100644 --- a/chrome/browser/automation/testing_automation_provider.cc +++ b/chrome/browser/automation/testing_automation_provider.cc @@ -2073,6 +2073,8 @@ void TestingAutomationProvider::SendJSONRequest(int handle, &TestingAutomationProvider::SendOSLevelKeyEventToTab; handler_map["ActivateTab"] = &TestingAutomationProvider::ActivateTabJSON; + handler_map["GetChromeDriverAutomationVersion"] = + &TestingAutomationProvider::GetChromeDriverAutomationVersion; #if defined(OS_CHROMEOS) handler_map["GetLoginInfo"] = &TestingAutomationProvider::GetLoginInfo; handler_map["LoginAsGuest"] = &TestingAutomationProvider::LoginAsGuest; @@ -5184,6 +5186,14 @@ void TestingAutomationProvider::ActivateTabJSON( reply.SendSuccess(NULL); } +void TestingAutomationProvider::GetChromeDriverAutomationVersion( + DictionaryValue* args, + IPC::Message* reply_message) { + DictionaryValue reply_dict; + reply_dict.SetInteger("version", automation::kChromeDriverAutomationVersion); + AutomationJSONReply(this, reply_message).SendSuccess(&reply_dict); +} + void TestingAutomationProvider::WaitForTabCountToBecome( int browser_handle, int target_tab_count, |