| Index: content/shell/android/shell_jni_onload_delegate.cc
|
| diff --git a/content/shell/android/shell_jni_onload_delegate.cc b/content/shell/android/shell_jni_onload_delegate.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..96f776dacc13a41d45c5a915b34a68ed9ef40def
|
| --- /dev/null
|
| +++ b/content/shell/android/shell_jni_onload_delegate.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2015 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 "content/shell/android/shell_jni_onload_delegate.h"
|
| +
|
| +#include "content/public/app/content_main.h"
|
| +#include "content/public/browser/android/compositor.h"
|
| +#include "content/shell/android/shell_jni_registrar.h"
|
| +#include "content/shell/app/shell_main_delegate.h"
|
| +
|
| +namespace content {
|
| +namespace android {
|
| +
|
| +bool ShellJNIOnLoadDelegate::RegisterJNI(JNIEnv* env) {
|
| + return content::android::RegisterShellJni(env);
|
| +}
|
| +
|
| +bool ShellJNIOnLoadDelegate::Init() {
|
| + content::Compositor::Initialize();
|
| + content::SetContentMainDelegate(new content::ShellMainDelegate());
|
| + return true;
|
| +}
|
| +
|
| +} // namespace android
|
| +} // namespace content
|
|
|