Chromium Code Reviews| Index: mojo/shell/android/shell_apk/src/org/chromium/mojo_shell_apk/LibraryLoader.java |
| diff --git a/mojo/shell/android/shell_apk/src/org/chromium/mojo_shell_apk/LibraryLoader.java b/mojo/shell/android/shell_apk/src/org/chromium/mojo_shell_apk/LibraryLoader.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..777c1c7e6efc239cc000a8165cc425c6cb6a29b1 |
| --- /dev/null |
| +++ b/mojo/shell/android/shell_apk/src/org/chromium/mojo_shell_apk/LibraryLoader.java |
| @@ -0,0 +1,20 @@ |
| +// Copyright 2013 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. |
| + |
| +package org.chromium.mojo_shell_apk; |
| + |
| +import java.lang.UnsatisfiedLinkError; |
| +import org.chromium.base.JNINamespace; |
| + |
| +@JNINamespace("mojo") |
| +public class LibraryLoader { |
| + private static Boolean sInitialized = false; |
| + |
| + public static void ensureInitialized() throws UnsatisfiedLinkError { |
| + if (!sInitialized) |
| + return; |
| + sInitialized = true; |
| + System.loadLibrary("mojo_shell"); |
|
joth
2013/10/24 04:37:57
Probably not a blocker at this point, but assuming
bulach
2013/10/24 12:58:04
plus all the threading issues :)
just FYI, things
abarth-chromium
2013/10/24 13:43:05
Yes. We've been avoiding introducing a dependency
abarth-chromium
2013/10/24 13:43:05
Thanks, that's very useful information. At this s
|
| + } |
| +} |