Index: chrome/test/webdriver/commands/title_command.cc |
diff --git a/chrome/test/webdriver/commands/title_command.cc b/chrome/test/webdriver/commands/title_command.cc |
index 121389536469c98320c2abbf10c0add4f2abb6f0..12eaa379bc8e8620bc056468de5ed20d40b9c4cf 100644 |
--- a/chrome/test/webdriver/commands/title_command.cc |
+++ b/chrome/test/webdriver/commands/title_command.cc |
@@ -8,6 +8,16 @@ |
namespace webdriver { |
+TitleCommand::TitleCommand(const std::vector<std::string>& path_segments, |
+ const DictionaryValue* const parameters) |
+ : WebDriverCommand(path_segments, parameters) {} |
+ |
+TitleCommand::~TitleCommand() {} |
+ |
+bool TitleCommand::DoesGet() { |
+ return true; |
+} |
+ |
void TitleCommand::ExecuteGet(Response* const response) { |
std::string title; |
if (!session_->GetTabTitle(&title)) { |
@@ -19,4 +29,8 @@ void TitleCommand::ExecuteGet(Response* const response) { |
response->set_status(kSuccess); |
} |
+bool TitleCommand::RequiresValidTab() { |
+ return true; |
+} |
+ |
} // namespace webdriver |