OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.mojo.shell; | 5 package org.chromium.mojo.shell; |
6 | 6 |
7 import android.util.Log; | 7 import android.util.Log; |
8 | 8 |
9 import org.chromium.base.BaseChromiumApplication; | 9 import org.chromium.base.BaseChromiumApplication; |
10 import org.chromium.base.PathUtils; | 10 import org.chromium.base.PathUtils; |
(...skipping 22 matching lines...) Expand all Loading... |
33 private void initializeJavaUtils() { | 33 private void initializeJavaUtils() { |
34 PathUtils.setPrivateDataDirectorySuffix( | 34 PathUtils.setPrivateDataDirectorySuffix( |
35 PRIVATE_DATA_DIRECTORY_SUFFIX, getApplicationContext()); | 35 PRIVATE_DATA_DIRECTORY_SUFFIX, getApplicationContext()); |
36 } | 36 } |
37 | 37 |
38 /** | 38 /** |
39 * Loads the native library. | 39 * Loads the native library. |
40 */ | 40 */ |
41 private void initializeNative() { | 41 private void initializeNative() { |
42 try { | 42 try { |
43 LibraryLoader.get(LibraryProcessType.PROCESS_BROWSER).ensureInitiali
zed(); | 43 LibraryLoader.get(LibraryProcessType.PROCESS_BROWSER) |
| 44 .ensureInitialized(getApplicationContext()); |
44 } catch (ProcessInitException e) { | 45 } catch (ProcessInitException e) { |
45 Log.e(TAG, "libmojo_shell initialization failed.", e); | 46 Log.e(TAG, "libmojo_shell initialization failed.", e); |
46 throw new RuntimeException(e); | 47 throw new RuntimeException(e); |
47 } | 48 } |
48 } | 49 } |
49 } | 50 } |
OLD | NEW |