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 b7aade3225a1371e29a1eb1c7967d6d6c3b3a5a9..1afe2d8a9ba9d9cbe6f6463aa4df09fa90d931a6 100644 |
--- a/ios/web/web_state/ui/web_view_js_utils.mm |
+++ b/ios/web/web_state/ui/web_view_js_utils.mm |
@@ -41,7 +41,7 @@ std::unique_ptr<base::Value> ValueResultFromWKResult(id wk_result, |
result.reset(new base::Value(static_cast<bool>([wk_result boolValue]))); |
DCHECK(result->IsType(base::Value::Type::BOOLEAN)); |
} else if (result_type == CFNullGetTypeID()) { |
- result = base::Value::CreateNullValue(); |
+ result = base::MakeUnique<base::Value>(); |
DCHECK(result->IsType(base::Value::Type::NONE)); |
} else if (result_type == CFDictionaryGetTypeID()) { |
std::unique_ptr<base::DictionaryValue> dictionary = |