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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ChildProcessCreationParams.java

Issue 2017963003: Upstream: ChildProcessLauncher connects renderer processes of WebAPKs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Each Allocator has a PendingSpawnQueue and rebase. Created 4 years, 7 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: content/public/android/java/src/org/chromium/content/browser/ChildProcessCreationParams.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ChildProcessCreationParams.java b/content/public/android/java/src/org/chromium/content/browser/ChildProcessCreationParams.java
index c125902bd14911eb23bd0301c3e0376d1fcf770e..1b109eff62813036e2b5f04eae0da8fdf9afeb60 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ChildProcessCreationParams.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ChildProcessCreationParams.java
@@ -24,6 +24,7 @@ public class ChildProcessCreationParams {
private static volatile ChildProcessCreationParams sChildProcessCreationParams;
public static void set(ChildProcessCreationParams params) {
+ assert params != null;
sChildProcessCreationParams = params;
}
@@ -38,10 +39,18 @@ public class ChildProcessCreationParams {
mLibraryProcessType = libraryProcessType;
}
+ public ChildProcessCreationParams copy() {
+ return new ChildProcessCreationParams(mPackageName, mExtraBindFlags, mLibraryProcessType);
+ }
+
public String getPackageName() {
return mPackageName;
}
+ public int getExtraBindFlags() {
+ return mExtraBindFlags;
+ }
+
/**
* Adds required extra flags to the given child service binding flags and returns them.
* Does not modify the state of the ChildProcessCreationParams instance.

Powered by Google App Engine
This is Rietveld 408576698