Index: content/browser/android/java/gin_java_bound_object.cc |
diff --git a/content/browser/android/java/gin_java_bound_object.cc b/content/browser/android/java/gin_java_bound_object.cc |
index 0440136ed5d015ac6f9fb4aa2e3324d948024ee5..99c8b5d14e3104c1ffc209e4f41fb991947a450f 100644 |
--- a/content/browser/android/java/gin_java_bound_object.cc |
+++ b/content/browser/android/java/gin_java_bound_object.cc |
@@ -185,7 +185,7 @@ void GinJavaBoundObject::EnsureMethodsAreSetUp() { |
} |
JavaMethod* method = new JavaMethod(java_method); |
- methods_.insert(std::make_pair(method->name(), method)); |
+ methods_.insert(std::make_pair(method->name(), make_linked_ptr(method))); |
} |
} |