Index: chrome/test/webdriver/commands/session_with_id.cc |
diff --git a/chrome/test/webdriver/commands/session_with_id.cc b/chrome/test/webdriver/commands/session_with_id.cc |
index ed1614f15fca52baa2e309ac0848007d7e134739..a0af8b20d5f3e176453fe5b0fa991553b5b20f27 100644 |
--- a/chrome/test/webdriver/commands/session_with_id.cc |
+++ b/chrome/test/webdriver/commands/session_with_id.cc |
@@ -40,8 +40,8 @@ void SessionWithID::ExecuteGet(Response* const response) { |
} |
void SessionWithID::ExecuteDelete(Response* const response) { |
+ // Session manages its own liftime, so do not call delete. |
session_->Terminate(); |
- SessionManager::GetInstance()->Delete(session_->id()); |
response->set_status(kSuccess); |
} |