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

Side by Side Diff: components/devtools_bridge/test/android/client/javatests/jni/jni_onload.cc

Issue 802293002: Revert of Stub for web-base client for DevTools bridge and tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/android/base_jni_registrar.h"
6 #include "base/android/jni_android.h"
7 #include "base/android/library_loader/library_loader_hooks.h"
8 #include "chrome/app/android/chrome_android_initializer.h"
9 #include "chrome/app/android/chrome_main_delegate_android.h"
10 #include "components/devtools_bridge/android/session_dependency_factory_android. h"
11 #include "components/devtools_bridge/test/android/client/web_client_android.h"
12
13 using namespace devtools_bridge::android;
14
15 namespace {
16
17 class Delegate : public ChromeMainDelegateAndroid {
18 public:
19 bool RegisterApplicationNativeMethods(JNIEnv* env) override {
20 return ChromeMainDelegateAndroid::RegisterApplicationNativeMethods(env) &&
21 SessionDependencyFactoryAndroid::InitializeSSL() &&
22 WebClientAndroid::RegisterNatives(env);
23 }
24 };
25
26 } // namespace
27
28 JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
29 return RunChrome(vm, new Delegate());
30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698