Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Unified Diff: chrome/test/webdriver/commands/webelement_commands.cc

Issue 10834004: Correct const accessors in base/values.(h|cc) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: One more, Windows-only Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/webdriver/commands/webelement_commands.cc
diff --git a/chrome/test/webdriver/commands/webelement_commands.cc b/chrome/test/webdriver/commands/webelement_commands.cc
index f9df353529f93deacefafa1bbe536a4fc151a370..d6e9d7e0398fe73097f4398da374a3e28639e671 100644
--- a/chrome/test/webdriver/commands/webelement_commands.cc
+++ b/chrome/test/webdriver/commands/webelement_commands.cc
@@ -25,7 +25,7 @@ namespace webdriver {
WebElementCommand::WebElementCommand(
const std::vector<std::string>& path_segments,
- const DictionaryValue* const parameters)
+ DictionaryValue* const parameters)
: WebDriverCommand(path_segments, parameters),
path_segments_(path_segments) {}
@@ -531,7 +531,7 @@ Error* ElementValueCommand::HasAttributeWithLowerCaseValueASCII(
}
Error* ElementValueCommand::DragAndDropFilePaths() const {
- ListValue* path_list;
+ const ListValue* path_list;
if (!GetListParameter("value", &path_list))
return new Error(kBadRequest, "Missing or invalid 'value' parameter");
@@ -579,7 +579,7 @@ Error* ElementValueCommand::DragAndDropFilePaths() const {
}
Error* ElementValueCommand::SendKeys() const {
- ListValue* key_list;
+ const ListValue* key_list;
if (!GetListParameter("value", &key_list)) {
return new Error(kBadRequest, "Missing or invalid 'value' parameter");
}

Powered by Google App Engine
This is Rietveld 408576698