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

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

Issue 2430803003: Cleanup/ Remove linked_ptr from gin_java_base_object.h/cc (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « content/browser/android/java/gin_java_bound_object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d281f8902b03da3a2b2683ccd960dd834d9cd3f1..706f81e02d8b2e5984a14ae2e2101cdbcb026c5f 100644
--- a/content/browser/android/java/gin_java_bound_object.cc
+++ b/content/browser/android/java/gin_java_bound_object.cc
@@ -183,8 +183,8 @@ void GinJavaBoundObject::EnsureMethodsAreSetUp() {
continue;
}
- JavaMethod* method = new JavaMethod(java_method);
- methods_.insert(std::make_pair(method->name(), make_linked_ptr(method)));
+ std::unique_ptr<JavaMethod> method(new JavaMethod(java_method));
+ methods_.insert(std::make_pair(method->name(), std::move(method)));
}
}
« no previous file with comments | « content/browser/android/java/gin_java_bound_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698