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 2506d0d7e2543bb5cd13ca202b8c09a6a722f02f..4e628c8c70bc838f5d59e9438988963f4e7a8955 100644 |
--- a/content/browser/android/java/gin_java_bridge_message_filter.cc |
+++ b/content/browser/android/java/gin_java_bridge_message_filter.cc |
@@ -94,9 +94,10 @@ scoped_refptr<GinJavaBridgeMessageFilter> GinJavaBridgeMessageFilter::FromHost( |
if (!filter && create_if_not_exists) { |
filter = new GinJavaBridgeMessageFilter(); |
rph->AddFilter(filter.get()); |
- rph->SetUserData(kGinJavaBridgeMessageFilterKey, |
- new base::UserDataAdapter<GinJavaBridgeMessageFilter>( |
- filter.get())); |
+ rph->SetUserData( |
+ kGinJavaBridgeMessageFilterKey, |
+ base::MakeUnique<base::UserDataAdapter<GinJavaBridgeMessageFilter>>( |
+ filter.get())); |
} |
return filter; |
} |