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

Unified Diff: chrome/test/webdriver/webdriver_element_id.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
« no previous file with comments | « chrome/test/webdriver/webdriver_dispatch_unittest.cc ('k') | chrome/test/webdriver/webdriver_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/webdriver_element_id.cc
diff --git a/chrome/test/webdriver/webdriver_element_id.cc b/chrome/test/webdriver/webdriver_element_id.cc
index d618c07fd77c93e9b46c8ab8764c6c5df6a5f461..83badeac0ae4dcb0e132fadf9c951d1081d67397 100644
--- a/chrome/test/webdriver/webdriver_element_id.cc
+++ b/chrome/test/webdriver/webdriver_element_id.cc
@@ -33,7 +33,7 @@ ElementId::ElementId(const std::string& id) : id_(id), is_valid_(true) {}
ElementId::ElementId(const Value* value) {
is_valid_ = false;
- if (value->IsType(Value::TYPE_DICTIONARY)) {
+ if (value->IsDictionary()) {
is_valid_ = static_cast<const DictionaryValue*>(value)->
GetString(kWebElementKey, &id_);
}
« no previous file with comments | « chrome/test/webdriver/webdriver_dispatch_unittest.cc ('k') | chrome/test/webdriver/webdriver_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698