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

Unified Diff: components/devtools_bridge/android/component_loader.cc

Issue 994543003: Refactoring devtools_bridge JNI_OnLoad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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: components/devtools_bridge/android/component_loader.cc
diff --git a/components/devtools_bridge/android/component_loader.cc b/components/devtools_bridge/android/component_loader.cc
deleted file mode 100644
index 20021e61c510460b25f9fe9c80e1cca0695e8877..0000000000000000000000000000000000000000
--- a/components/devtools_bridge/android/component_loader.cc
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/devtools_bridge/android/component_loader.h"
-
-#include "base/android/base_jni_registrar.h"
-#include "components/devtools_bridge/android/apiary_client_factory.h"
-#include "components/devtools_bridge/android/session_dependency_factory_android.h"
-
-namespace devtools_bridge {
-namespace android {
-
-// static
-bool ComponentLoader::OnLoad(JNIEnv* env) {
- return
- SessionDependencyFactory::InitializeSSL() &&
- base::android::RegisterJni(env) &&
- SessionDependencyFactoryAndroid::RegisterNatives(env) &&
- ApiaryClientFactory::RegisterNatives(env);
-
-}
-
-} // namespace android
-} // namespace devtools_bridge

Powered by Google App Engine
This is Rietveld 408576698