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

Unified Diff: android_webview/glue/java/src/com/android/webview/chromium/MonochromeLibraryPreloader.java

Issue 2298093008: android webview: Upstream android 7 glue layer (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/glue/java/src/com/android/webview/chromium/MonochromeLibraryPreloader.java
diff --git a/android_webview/glue/java/src/com/android/webview/chromium/MonochromeLibraryPreloader.java b/android_webview/glue/java/src/com/android/webview/chromium/MonochromeLibraryPreloader.java
new file mode 100644
index 0000000000000000000000000000000000000000..0d0b824bf281e637ea2ccfdffd536f9e8bc18d19
--- /dev/null
+++ b/android_webview/glue/java/src/com/android/webview/chromium/MonochromeLibraryPreloader.java
@@ -0,0 +1,23 @@
+// Copyright 2016 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 com.android.webview.chromium;
+
+import android.content.Context;
+import android.webkit.WebViewFactory;
+
+import org.chromium.base.library_loader.NativeLibraryPreloader;
+
+/**
+ * The library preloader for Monochrome for sharing native library's relro
+ * between Chrome and WebView.
+ */
+public class MonochromeLibraryPreloader extends NativeLibraryPreloader {
+
+ @Override
+ public int loadLibrary(Context context) {
+ return WebViewFactory.loadWebViewNativeLibraryFromPackage(context.getPackageName(),
+ getClass().getClassLoader());
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698