Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / mojo / shell / android / apk / src / org / chromium / mojo_shell_apk / LibraryLoader.java
1 // Copyright 2013 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 package org.chromium.mojo_shell_apk;
6
7 import android.util.Log;
8
9 public class LibraryLoader {
10     private static final String TAG = "LibraryLoader";
11     private static Boolean sInitialized = false;
12
13     public static void ensureInitialized() throws UnsatisfiedLinkError {
14         if (sInitialized)
15             return;
16         sInitialized = true;
17         System.loadLibrary("mojo_shell");
18         Log.i(TAG, "libmojo_shell initialization success.");
19     }
20 }