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

Unified Diff: chrome/test/webdriver/commands/command.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/command.cc
diff --git a/chrome/test/webdriver/commands/command.cc b/chrome/test/webdriver/commands/command.cc
index 7f4686de4e34f7317c67a26dd9d6aa3c36ce87f6..0144f70de3b09c6bba769509fa17fe690799c027 100644
--- a/chrome/test/webdriver/commands/command.cc
+++ b/chrome/test/webdriver/commands/command.cc
@@ -7,7 +7,7 @@
namespace webdriver {
Command::Command(const std::vector<std::string>& path_segments,
- const DictionaryValue* const parameters)
+ DictionaryValue* const parameters)
: path_segments_(path_segments),
parameters_(parameters) {}
@@ -40,7 +40,7 @@ bool Command::HasParameter(const std::string& key) const {
}
bool Command::IsNullParameter(const std::string& key) const {
- Value* value;
+ const Value* value;
return parameters_.get() &&
parameters_->Get(key, &value) &&
value->IsType(Value::TYPE_NULL);
@@ -81,7 +81,7 @@ bool Command::GetDictionaryParameter(const std::string& key,
}
bool Command::GetListParameter(const std::string& key,
- ListValue** out) const {
+ const ListValue** out) const {
return parameters_.get() != NULL && parameters_->GetList(key, out);
}

Powered by Google App Engine
This is Rietveld 408576698