OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 com.android.webview.chromium; |
| 6 |
| 7 import android.content.Context; |
| 8 import android.webkit.WebViewFactory; |
| 9 |
| 10 import org.chromium.base.library_loader.NativeLibraryPreloader; |
| 11 |
| 12 /** |
| 13 * The library preloader for Monochrome for sharing native library's relro |
| 14 * between Chrome and WebView. |
| 15 */ |
| 16 public class MonochromeLibraryPreloader extends NativeLibraryPreloader { |
| 17 |
| 18 @Override |
| 19 public int loadLibrary(Context context) { |
| 20 return WebViewFactory.loadWebViewNativeLibraryFromPackage(context.getPac
kageName(), |
| 21 getClass().getClassLoader()); |
| 22 } |
| 23 } |
OLD | NEW |