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 f348f9f0033d04f350a47eac704bfc6616720e5d..dd45d0a5ecb75e877e50124c56847abf13583a04 100644 |
--- a/content/browser/android/java/gin_java_bridge_message_filter.cc |
+++ b/content/browser/android/java/gin_java_bridge_message_filter.cc |
@@ -168,4 +168,11 @@ void GinJavaBridgeMessageFilter::OnObjectWrapperDeleted( |
host->OnObjectWrapperDeleted(current_routing_id_, object_id); |
} |
+// static |
+void GinJavaBridgeMessageFilter::RemoveFilter( |
+ GinJavaBridgeDispatcherHost* host) { |
+ RenderProcessHost* rph = host->web_contents()->GetRenderProcessHost(); |
+ rph->RemoveUserData(kGinJavaBridgeMessageFilterKey); |
+} |
+ |
} // namespace content |