OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/test/webdriver/commands/session_with_id.h" | 5 #include "chrome/test/webdriver/commands/session_with_id.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 #endif | 34 #endif |
35 | 35 |
36 temp_value->SetBoolean(std::string("javascriptEnabled"), true); | 36 temp_value->SetBoolean(std::string("javascriptEnabled"), true); |
37 | 37 |
38 response->set_status(kSuccess); | 38 response->set_status(kSuccess); |
39 response->set_value(temp_value); | 39 response->set_value(temp_value); |
40 } | 40 } |
41 | 41 |
42 void SessionWithID::ExecuteDelete(Response* const response) { | 42 void SessionWithID::ExecuteDelete(Response* const response) { |
43 session_->Terminate(); | 43 session_->Terminate(); |
44 SessionManager::GetInstance()->Delete(session_->id()); | |
45 response->set_status(kSuccess); | 44 response->set_status(kSuccess); |
46 } | 45 } |
47 | 46 |
48 } // namespace webdriver | 47 } // namespace webdriver |
OLD | NEW |