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

Unified Diff: chrome/renderer/automation/dom_automation_controller.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo 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/common/json_schema_validator_unittest_base.cc ('k') | chrome/service/service_process_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/automation/dom_automation_controller.cc
diff --git a/chrome/renderer/automation/dom_automation_controller.cc b/chrome/renderer/automation/dom_automation_controller.cc
index 35e7c9ad64b1b9255402d87e206994b44967eaab..3374ebc0da0255347684df2e59b966de0f37c42b 100644
--- a/chrome/renderer/automation/dom_automation_controller.cc
+++ b/chrome/renderer/automation/dom_automation_controller.cc
@@ -47,15 +47,15 @@ void DomAutomationController::Send(const CppArgumentList& args,
// grabbing the 0th element to get the value out.
switch (args[0].type) {
case NPVariantType_String: {
- value.reset(Value::CreateStringValue(args[0].ToString()));
+ value.reset(base::StringValue::New(args[0].ToString()));
break;
}
case NPVariantType_Bool: {
- value.reset(Value::CreateBooleanValue(args[0].ToBoolean()));
+ value.reset(base::BooleanValue::New(args[0].ToBoolean()));
break;
}
case NPVariantType_Int32: {
- value.reset(Value::CreateIntegerValue(args[0].ToInt32()));
+ value.reset(base::NumberValue::New(args[0].ToInt32()));
break;
}
case NPVariantType_Double: {
@@ -63,7 +63,7 @@ void DomAutomationController::Send(const CppArgumentList& args,
// as a double in this binding. The reason being that KJS treats
// any number value as a double. Refer for more details,
// chrome/third_party/webkit/src/JavaScriptCore/bindings/c/c_utility.cpp
- value.reset(Value::CreateIntegerValue(args[0].ToInt32()));
+ value.reset(base::NumberValue::New(args[0].ToInt32()));
break;
}
default: {
« no previous file with comments | « chrome/common/json_schema_validator_unittest_base.cc ('k') | chrome/service/service_process_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698