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

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

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 | « no previous file | content/browser/android/java/gin_java_bound_object.cc » ('j') | 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.h
diff --git a/content/browser/android/java/gin_java_bound_object.h b/content/browser/android/java/gin_java_bound_object.h
index 735e14a7b716d66c2bdbf4a494e797cacec46a9d..7c23c0eee889764ed32941e23582fe1197d71828 100644
--- a/content/browser/android/java/gin_java_bound_object.h
+++ b/content/browser/android/java/gin_java_bound_object.h
@@ -9,11 +9,11 @@
#include <stdint.h>
#include <map>
+#include <memory>
#include <set>
#include "base/android/jni_weak_ref.h"
#include "base/android/scoped_java_ref.h"
-#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/values.h"
#include "content/browser/android/java/java_method.h"
@@ -79,7 +79,7 @@ class GinJavaBoundObject
std::set<int32_t> holders_;
// The following fields are accessed on the background thread.
- typedef std::multimap<std::string, linked_ptr<JavaMethod> > JavaMethodMap;
+ using JavaMethodMap = std::multimap<std::string, std::unique_ptr<JavaMethod>>;
JavaMethodMap methods_;
jmethodID object_get_class_method_id_;
bool are_methods_set_up_;
« no previous file with comments | « no previous file | content/browser/android/java/gin_java_bound_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698