summaryrefslogtreecommitdiffstats
path: root/chrome/test/webdriver/commands/title_command.cc
diff options
context:
space:
mode:
authorkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-19 23:32:55 +0000
committerkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-19 23:32:55 +0000
commitb7448dc7eac020055d9bc9aee12d1b9ed7dbd466 (patch)
treec2689890eff1a27bcb9c50167f015daa21b55f08 /chrome/test/webdriver/commands/title_command.cc
parent86469503a695e2ede48244c846053dd9ae91e5fa (diff)
downloadchromium_src-b7448dc7eac020055d9bc9aee12d1b9ed7dbd466.zip
chromium_src-b7448dc7eac020055d9bc9aee12d1b9ed7dbd466.tar.gz
chromium_src-b7448dc7eac020055d9bc9aee12d1b9ed7dbd466.tar.bz2
Cleaning up response.h and moving all of the logic into the .cc file.
Patch by jleyba@chromium.org. Original review at http://codereview.chromium.org/6543015 BUG=none TEST=none Review URL: http://codereview.chromium.org/6469071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75506 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/webdriver/commands/title_command.cc')
-rw-r--r--chrome/test/webdriver/commands/title_command.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/test/webdriver/commands/title_command.cc b/chrome/test/webdriver/commands/title_command.cc
index 12eaa37..6bb344f 100644
--- a/chrome/test/webdriver/commands/title_command.cc
+++ b/chrome/test/webdriver/commands/title_command.cc
@@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/test/webdriver/commands/title_command.h"
+
#include <string>
-#include "chrome/test/webdriver/commands/title_command.h"
+#include "chrome/test/webdriver/commands/response.h"
namespace webdriver {
@@ -25,8 +27,8 @@ void TitleCommand::ExecuteGet(Response* const response) {
return;
}
- response->set_value(new StringValue(title));
- response->set_status(kSuccess);
+ response->SetValue(new StringValue(title));
+ response->SetStatus(kSuccess);
}
bool TitleCommand::RequiresValidTab() {