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: { |