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

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: 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..e48667132420b0571e1b273f11e85478fcf9c837 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,19 @@ public class ChildProcessCreationParams {
mLibraryProcessType = libraryProcessType;
}
+ @Override
+ public ChildProcessCreationParams clone() {
+ return new ChildProcessCreationParams(mPackageName, mExtraBindFlags, mLibraryProcessType);
pkotwicz 2016/05/27 21:10:13 Can you please check that there are no errors thro
Xi Han 2016/05/27 21:31:39 Good catch. Rename it to copy().
+ }
+
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