| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |