Index: ios/web/web_state/ui/web_view_js_utils.mm |
diff --git a/ios/web/web_state/ui/web_view_js_utils.mm b/ios/web/web_state/ui/web_view_js_utils.mm |
index 50e4f42b1365126da8e1fe0782d1490349968fd4..b7aade3225a1371e29a1eb1c7967d6d6c3b3a5a9 100644 |
--- a/ios/web/web_state/ui/web_view_js_utils.mm |
+++ b/ios/web/web_state/ui/web_view_js_utils.mm |
@@ -32,7 +32,7 @@ std::unique_ptr<base::Value> ValueResultFromWKResult(id wk_result, |
CFTypeID result_type = CFGetTypeID(wk_result); |
if (result_type == CFStringGetTypeID()) { |
- result.reset(new base::StringValue(base::SysNSStringToUTF16(wk_result))); |
+ result.reset(new base::Value(base::SysNSStringToUTF16(wk_result))); |
DCHECK(result->IsType(base::Value::Type::STRING)); |
} else if (result_type == CFNumberGetTypeID()) { |
result.reset(new base::Value([wk_result doubleValue])); |