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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/android/java/gin_java_bound_object.h" 5 #include "content/browser/android/java/gin_java_bound_object.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 env, 176 env,
177 kJavaLangReflectMethod, 177 kJavaLangReflectMethod,
178 kIsAnnotationPresent, 178 kIsAnnotationPresent,
179 kTakesJavaLangClassReturningBoolean), 179 kTakesJavaLangClassReturningBoolean),
180 safe_annotation_clazz_.obj()); 180 safe_annotation_clazz_.obj());
181 181
182 if (!safe) 182 if (!safe)
183 continue; 183 continue;
184 } 184 }
185 185
186 JavaMethod* method = new JavaMethod(java_method); 186 std::unique_ptr<JavaMethod> method(new JavaMethod(java_method));
187 methods_.insert(std::make_pair(method->name(), make_linked_ptr(method))); 187 methods_.insert(std::make_pair(method->name(), std::move(method)));
188 } 188 }
189 } 189 }
190 190
191 } // namespace content 191 } // namespace content
OLDNEW
« 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