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

Side by Side Diff: chrome/app/android/chrome_android_initializer.cc

Issue 10918113: Add initial Chromium TestShell support for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment for RegisterApplicationNativeMethods Created 8 years, 3 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 "chrome/app/android/chrome_android_initializer.h"
6
7 #include "base/android/jni_android.h"
8 #include "base/logging.h"
9 #include "chrome/app/android/chrome_main_delegate_android.h"
10 #include "content/public/app/android_library_loader_hooks.h"
11 #include "content/public/app/content_main.h"
12
13 jint RunChrome(JavaVM* vm, ChromeMainDelegateAndroid* main_delegate) {
14 base::android::InitVM(vm);
15 JNIEnv* env = base::android::AttachCurrentThread();
16 if (!content::RegisterLibraryLoaderEntryHook(env)) {
Ted C 2012/09/11 00:10:05 no need for the braces
David Trainor- moved to gerrit 2012/09/11 00:25:04 Done.
17 return -1;
18 }
19
20 DCHECK(main_delegate);
21 content::SetContentMainDelegate(main_delegate);
22
23 return JNI_VERSION_1_4;
24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698