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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/MonochromeApplication.java

Issue 2739503002: Remove templating from MonochromeApplication. (Closed)
Patch Set: Add DEPS rule for MonochromeApplication Created 3 years, 9 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
« no previous file with comments | « chrome/android/java/DEPS ('k') | chrome/android/java/templates/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/MonochromeApplication.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/MonochromeApplication.java b/chrome/android/java/src/org/chromium/chrome/browser/MonochromeApplication.java
new file mode 100644
index 0000000000000000000000000000000000000000..d114c0ea600b2ff1e07c2cea0a20b8520c64d13a
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/MonochromeApplication.java
@@ -0,0 +1,30 @@
+// 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 org.chromium.chrome.browser;
+
+import com.android.webview.chromium.MonochromeLibraryPreloader;
+
+import org.chromium.base.library_loader.LibraryLoader;
+import org.chromium.base.library_loader.LibraryProcessType;
+import org.chromium.content.browser.ChildProcessCreationParams;
+
+/**
+ * This is Application class for Monochrome.
+ *
+ * You shouldn't add anything else in this file, this class is split off from
+ * normal chrome in order to access Android system API through Android WebView
+ * glue layer and have monochrome specific code.
+ */
+public class MonochromeApplication extends ChromeApplication {
+ @Override
+ public void onCreate() {
+ super.onCreate();
+ LibraryLoader.setNativeLibraryPreloader(new MonochromeLibraryPreloader());
+ // ChildProcessCreationParams is only needed for browser process, though it is
+ // created and set in all processes.
+ ChildProcessCreationParams.registerDefault(new ChildProcessCreationParams(
+ getPackageName(), true /* isExternalService */, LibraryProcessType.PROCESS_CHILD));
+ }
+}
« no previous file with comments | « chrome/android/java/DEPS ('k') | chrome/android/java/templates/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698