Index: chrome/browser/dom_distiller/dom_distiller_service_factory_android.cc |
diff --git a/chrome/browser/dom_distiller/dom_distiller_service_factory_android.cc b/chrome/browser/dom_distiller/dom_distiller_service_factory_android.cc |
index 1c1df8e6ee2214a8122f325ed5011b93d4823607..892a4412e435aa683d7718302685a338e57a0160 100644 |
--- a/chrome/browser/dom_distiller/dom_distiller_service_factory_android.cc |
+++ b/chrome/browser/dom_distiller/dom_distiller_service_factory_android.cc |
@@ -16,27 +16,24 @@ |
namespace dom_distiller { |
namespace android { |
-ScopedJavaLocalRef<jobject> DomDistillerServiceFactoryAndroid::GetForProfile( |
- JNIEnv* env, |
- jclass clazz, |
- jobject j_profile) { |
+jobject DomDistillerServiceFactoryAndroid::GetForProfile(JNIEnv* env, |
+ jclass clazz, |
+ jobject j_profile) { |
dom_distiller::DomDistillerService* service = |
dom_distiller::DomDistillerServiceFactory::GetForBrowserContext( |
ProfileAndroid::FromProfileAndroid(j_profile)); |
DomDistillerServiceAndroid* service_android = |
new DomDistillerServiceAndroid(service); |
- return ScopedJavaLocalRef<jobject>(service_android->java_ref_); |
+ return service_android->java_ref_.obj(); |
} |
bool DomDistillerServiceFactoryAndroid::Register(JNIEnv* env) { |
return RegisterNativesImpl(env); |
} |
-ScopedJavaLocalRef<jobject> GetForProfile(JNIEnv* env, |
- jclass clazz, |
- jobject j_profile) { |
- return DomDistillerServiceFactoryAndroid::GetForProfile(env, clazz, |
- j_profile); |
+jobject GetForProfile(JNIEnv* env, jclass clazz, jobject j_profile) { |
+ return DomDistillerServiceFactoryAndroid::GetForProfile( |
+ env, clazz, j_profile); |
} |
} // namespace android |