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

Unified Diff: content/browser/android/service_registry_android_impl.cc

Issue 2099063002: Migrate RenderProcessHost, ChildThread to InterfaceRegistry/Provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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
Index: content/browser/android/service_registry_android_impl.cc
diff --git a/content/browser/android/service_registry_android_impl.cc b/content/browser/android/service_registry_android_impl.cc
index 27ae25bdfc99ef7cf85a27e63b11701988491897..a59a8c2027cdd7b97d7bf0ee9d6876faf27ac722 100644
--- a/content/browser/android/service_registry_android_impl.cc
+++ b/content/browser/android/service_registry_android_impl.cc
@@ -48,12 +48,6 @@ std::unique_ptr<ServiceRegistryAndroid> ServiceRegistryAndroid::Create(
}
// static
-std::unique_ptr<ServiceRegistryAndroid> ServiceRegistryAndroid::Create(
- ServiceRegistry* service_registry) {
- return base::WrapUnique(new ServiceRegistryAndroidImpl(service_registry));
-}
-
-// static
bool ServiceRegistryAndroidImpl::Register(JNIEnv* env) {
return RegisterNativesImpl(env);
}
@@ -74,16 +68,6 @@ ServiceRegistryAndroidImpl::ServiceRegistryAndroidImpl(
Java_ServiceRegistry_create(env, reinterpret_cast<intptr_t>(this)).obj());
}
-ServiceRegistryAndroidImpl::ServiceRegistryAndroidImpl(
- ServiceRegistry* service_registry)
- : service_registry_(service_registry) {
- JNIEnv* env = AttachCurrentThread();
- obj_.Reset(
- env,
- Java_ServiceRegistry_create(env, reinterpret_cast<intptr_t>(this)).obj());
-}
-
-
const base::android::ScopedJavaGlobalRef<jobject>&
ServiceRegistryAndroidImpl::GetObj() {
return obj_;

Powered by Google App Engine
This is Rietveld 408576698