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

Unified Diff: content/browser/android/java/gin_java_bridge_dispatcher_host.cc

Issue 2792573002: Remove base::Value::CreateNullValue (Closed)
Patch Set: Rebase Created 3 years, 8 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
Index: content/browser/android/java/gin_java_bridge_dispatcher_host.cc
diff --git a/content/browser/android/java/gin_java_bridge_dispatcher_host.cc b/content/browser/android/java/gin_java_bridge_dispatcher_host.cc
index 88e27dc51ab49db33d377d53685704279326c891..4b1fbeba4738f92d13dad852ab15429188415579 100644
--- a/content/browser/android/java/gin_java_bridge_dispatcher_host.cc
+++ b/content/browser/android/java/gin_java_bridge_dispatcher_host.cc
@@ -330,7 +330,7 @@ void GinJavaBridgeDispatcherHost::OnInvokeMethod(
DCHECK(routing_id != MSG_ROUTING_NONE);
scoped_refptr<GinJavaBoundObject> object = FindObject(object_id);
if (!object.get()) {
- wrapped_result->Append(base::Value::CreateNullValue());
+ wrapped_result->Append(base::MakeUnique<base::Value>());
*error_code = kGinJavaBridgeUnknownObjectId;
return;
}
@@ -360,7 +360,7 @@ void GinJavaBridgeDispatcherHost::OnInvokeMethod(
GinJavaBridgeValue::CreateObjectIDValue(
returned_object_id).release());
} else {
- wrapped_result->Append(base::Value::CreateNullValue());
+ wrapped_result->Append(base::MakeUnique<base::Value>());
}
}

Powered by Google App Engine
This is Rietveld 408576698