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

Unified Diff: chrome/test/automation/automation_json_requests.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/service/service_process_prefs.cc ('k') | chrome/test/automation/javascript_execution_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automation/automation_json_requests.cc
diff --git a/chrome/test/automation/automation_json_requests.cc b/chrome/test/automation/automation_json_requests.cc
index ab0de317a05c72335a198dd4119fb645c6b642bc..a4b3c8db6ee51b002bd71d7a9c4ab828365f5456 100644
--- a/chrome/test/automation/automation_json_requests.cc
+++ b/chrome/test/automation/automation_json_requests.cc
@@ -43,7 +43,7 @@ bool SendAutomationJSONRequest(AutomationMessageSender* sender,
return false;
}
scoped_ptr<Value> value(base::JSONReader::Read(reply, true));
- if (!value.get() || !value->IsType(Value::TYPE_DICTIONARY)) {
+ if (!value.get() || !value->IsDictionary()) {
LOG(ERROR) << "JSON request did not return dict: " << command << "\n";
return false;
}
@@ -187,7 +187,7 @@ bool SendExecuteJavascriptJSONRequest(
JSONStringValueSerializer deserializer(json);
Value* value = deserializer.Deserialize(NULL, NULL);
- if (!value || !value->IsType(Value::TYPE_LIST)) {
+ if (!value || !value->IsList()) {
LOG(ERROR) << "Unable to deserialize returned JSON";
return false;
}
@@ -297,7 +297,7 @@ bool SendGetCookiesJSONRequest(
if (!reply_dict.Remove("cookies", &cookies_unscoped_value))
return false;
scoped_ptr<Value> cookies_value(cookies_unscoped_value);
- if (!cookies_value->IsType(Value::TYPE_LIST))
+ if (!cookies_value->IsList())
return false;
*cookies = static_cast<ListValue*>(cookies_value.release());
return true;
« no previous file with comments | « chrome/service/service_process_prefs.cc ('k') | chrome/test/automation/javascript_execution_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698