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

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

Issue 7661009: base: Add Is* functions to Value class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tony review Created 9 years, 4 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 95ad878f54fed029c992e52aaa1dbb8505a671bb..7d6cb1643a09ca0f30ee7db1d181b5be1a6d98d5 100644
--- a/chrome/test/webdriver/commands/command.cc
+++ b/chrome/test/webdriver/commands/command.cc
@@ -39,9 +39,7 @@ bool Command::HasParameter(const std::string& key) const {
bool Command::IsNullParameter(const std::string& key) const {
Value* value;
- return parameters_.get() &&
- parameters_->Get(key, &value) &&
- value->IsType(Value::TYPE_NULL);
+ return parameters_.get() && parameters_->Get(key, &value) && value->IsNull();
}
bool Command::GetStringParameter(const std::string& key,
« no previous file with comments | « chrome/test/ui/javascript_test_util.cc ('k') | chrome/test/webdriver/commands/set_timeout_commands_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698