| Index: chrome/test/webdriver/commands/create_session.cc | 
| =================================================================== | 
| --- chrome/test/webdriver/commands/create_session.cc	(revision 77771) | 
| +++ chrome/test/webdriver/commands/create_session.cc	(working copy) | 
| @@ -28,6 +28,12 @@ | 
| void CreateSession::ExecutePost(Response* const response) { | 
| SessionManager* session_manager = SessionManager::GetInstance(); | 
|  | 
| +  bool native_events_required = false; | 
| +  DictionaryValue* capabilities = NULL; | 
| +  if (GetDictionaryParameter("desiredCapabilities", &capabilities)) { | 
| +    capabilities->GetBoolean("chrome.nativeEvents", &native_events_required); | 
| +  } | 
| + | 
| // Session manages its own liftime, so do not call delete. | 
| Session* session = new Session(); | 
| if (!session->Init(session_manager->chrome_dir())) { | 
| @@ -36,6 +42,7 @@ | 
| kInternalServerError); | 
| return; | 
| } | 
| +  session->set_use_native_events(native_events_required); | 
|  | 
| VLOG(1) << "Created session " << session->id(); | 
| std::ostringstream stream; | 
|  |