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

Side by Side Diff: android_webview/lib/main/webview_entry_point.cc

Issue 10825155: Build target for Android WebView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove chrome/ changes Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 "android_webview/lib/main/webview_main_delegate.h"
6 #include "base/android/jni_android.h"
7 #include "content/public/app/android_library_loader_hooks.h"
8 #include "content/public/app/content_main.h"
9
10 // This is called by the VM when the shared library is first loaded.
11 // Most of the initialization is done in LibraryLoadedOnMainThread(), not here.
12 JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
13 base::android::InitVM(vm);
14 JNIEnv* env = base::android::AttachCurrentThread();
15 if (!content::RegisterLibraryLoaderEntryHook(env)) {
16 return -1;
17 }
18
19 content::SetContentMainDelegate(new android_webview::WebViewMainDelegate());
20
21 return JNI_VERSION_1_4;
22 }
OLDNEW
« no previous file with comments | « android_webview/lib/android_webview.gyp ('k') | android_webview/lib/main/webview_main_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698