| Index: content/browser/renderer_host/java/java_bound_object.h
|
| diff --git a/content/browser/renderer_host/java/java_bound_object.h b/content/browser/renderer_host/java/java_bound_object.h
|
| index 61a1dfbeb6d037056f1452b5c6d20c8fe5d06138..992929b74cd3c150084e81446b4f7099f6c16130 100644
|
| --- a/content/browser/renderer_host/java/java_bound_object.h
|
| +++ b/content/browser/renderer_host/java/java_bound_object.h
|
| @@ -44,10 +44,9 @@ class JavaBoundObject {
|
|
|
| void EnsureMethodsAreSetUp() const;
|
|
|
| - // Global ref to the underlying Java object. We use a naked jobject, rather
|
| - // than a ScopedJavaGlobalRef, as the global ref will be added and dropped on
|
| - // different threads.
|
| - jobject java_object_;
|
| + // The global ref to the underlying Java object that this JavaBoundObject
|
| + // instance represents.
|
| + base::android::ScopedJavaGlobalRef<jobject> java_object_;
|
|
|
| // Map of public methods, from method name to Method instance. Multiple
|
| // entries will be present for overloaded methods. Note that we can't use
|
|
|