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

Side by Side Diff: chrome/android/java/templates/MonochromeApplication.template

Issue 2748343006: Moving ChildProcessCreationParams from content to base. (Closed)
Patch Set: Fix build. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 {{package}}; 5 package {{package}};
6 6
7 import android.content.Context; 7 import android.content.Context;
8 8
9 import com.android.webview.chromium.MonochromeLibraryPreloader; 9 import com.android.webview.chromium.MonochromeLibraryPreloader;
10 10
11 import org.chromium.base.library_loader.LibraryLoader; 11 import org.chromium.base.library_loader.LibraryLoader;
12 import org.chromium.base.library_loader.LibraryProcessType; 12 import org.chromium.base.library_loader.LibraryProcessType;
13 import org.chromium.content.browser.ChildProcessCreationParams; 13 import org.chromium.base.process_launcher.ChildProcessCreationParams;
14 14
15 /** 15 /**
16 * This is Application class for Monochrome. 16 * This is Application class for Monochrome.
17 * 17 *
18 * You shouldn't add anything else in this file, this class is split off from 18 * You shouldn't add anything else in this file, this class is split off from
19 * normal chrome in order to access Android system API through Android WebView 19 * normal chrome in order to access Android system API through Android WebView
20 * glue layer and have monochrome specific code. 20 * glue layer and have monochrome specific code.
21 */ 21 */
22 public class {{ monochrome_application_class }} extends {{ super_class }} { 22 public class {{ monochrome_application_class }} extends {{ super_class }} {
23 @Override 23 @Override
24 public void onCreate() { 24 public void onCreate() {
25 super.onCreate(); 25 super.onCreate();
26 LibraryLoader.setNativeLibraryPreloader(new MonochromeLibraryPreloader() ); 26 LibraryLoader.setNativeLibraryPreloader(new MonochromeLibraryPreloader() );
27 // ChildProcessCreationParams is only needed for browser process, though it is 27 // ChildProcessCreationParams is only needed for browser process, though it is
28 // created and set in all processes. 28 // created and set in all processes.
29 ChildProcessCreationParams.registerDefault( 29 ChildProcessCreationParams.registerDefault(
30 new ChildProcessCreationParams(getPackageName(), 30 new ChildProcessCreationParams(getPackageName(),
31 true /* isExternalService */, 31 true /* isExternalService */,
32 LibraryProcessType.PROCESS_CHILD)); 32 LibraryProcessType.PROCESS_CHILD));
33 } 33 }
34 } 34 }
OLDNEW
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java ('k') | content/public/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698