diff options
Diffstat (limited to 'chrome/test/webdriver/commands')
-rw-r--r-- | chrome/test/webdriver/commands/response.cc | 2 | ||||
-rw-r--r-- | chrome/test/webdriver/commands/response.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/test/webdriver/commands/response.cc b/chrome/test/webdriver/commands/response.cc index 882dbeb..1c09d39 100644 --- a/chrome/test/webdriver/commands/response.cc +++ b/chrome/test/webdriver/commands/response.cc @@ -46,7 +46,7 @@ void Response::SetStatus(ErrorCode status) { data_.SetInteger(kStatusKey, status); } -Value* Response::GetValue() const { +const Value* Response::GetValue() const { Value* out = NULL; LOG_IF(WARNING, !data_.Get(kValueKey, &out)) << "Accessing unset response value."; // Should never happen. diff --git a/chrome/test/webdriver/commands/response.h b/chrome/test/webdriver/commands/response.h index 0d25c48..9c44e60 100644 --- a/chrome/test/webdriver/commands/response.h +++ b/chrome/test/webdriver/commands/response.h @@ -28,7 +28,7 @@ class Response { void SetStatus(ErrorCode status); // Ownership of the returned pointer is kept by this object. - Value* GetValue() const; + const Value* GetValue() const; // Sets the |value| of this response, assuming ownership of the object in the // process. |