Index: content/browser/android/java/gin_java_bridge_message_filter.cc |
diff --git a/content/browser/android/java/gin_java_bridge_message_filter.cc b/content/browser/android/java/gin_java_bridge_message_filter.cc |
index dd45d0a5ecb75e877e50124c56847abf13583a04..2506d0d7e2543bb5cd13ca202b8c09a6a722f02f 100644 |
--- a/content/browser/android/java/gin_java_bridge_message_filter.cc |
+++ b/content/browser/android/java/gin_java_bridge_message_filter.cc |
@@ -5,6 +5,7 @@ |
#include "content/browser/android/java/gin_java_bridge_message_filter.h" |
#include "base/auto_reset.h" |
+#include "base/memory/ptr_util.h" |
#include "build/build_config.h" |
#include "content/browser/android/java/gin_java_bridge_dispatcher_host.h" |
#include "content/browser/android/java/java_bridge_thread.h" |
@@ -155,7 +156,7 @@ void GinJavaBridgeMessageFilter::OnInvokeMethod( |
host->OnInvokeMethod(current_routing_id_, object_id, method_name, arguments, |
wrapped_result, error_code); |
} else { |
- wrapped_result->Append(base::Value::CreateNullValue()); |
+ wrapped_result->Append(base::MakeUnique<base::Value>()); |
*error_code = kGinJavaBridgeRenderFrameDeleted; |
} |
} |