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

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

Issue 2706933003: webapk: Avoid overwriting default CreationParams
Patch Set: cleanups Created 3 years, 10 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: chrome/android/java/src/org/chromium/chrome/browser/WebContentsFactory.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/WebContentsFactory.java b/chrome/android/java/src/org/chromium/chrome/browser/WebContentsFactory.java
index f31a7bfa3c4969f36b8ae7af1a2b52835441c839..4edbe4c6ca82da56a4a779e44d373de55b19a6da 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/WebContentsFactory.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/WebContentsFactory.java
@@ -22,8 +22,9 @@ public abstract class WebContentsFactory {
* @param initiallyHidden Whether or not the {@link WebContents} should be initially hidden.
* @return A newly created {@link WebContents} object.
*/
- public static WebContents createWebContents(boolean incognito, boolean initiallyHidden) {
- return nativeCreateWebContents(incognito, initiallyHidden, false);
+ public static WebContents createWebContents(
+ int childProcessParamId, boolean incognito, boolean initiallyHidden) {
+ return nativeCreateWebContents(childProcessParamId, incognito, initiallyHidden, false);
}
/**
@@ -37,10 +38,10 @@ public abstract class WebContentsFactory {
* @return A newly created {@link WebContents} object.
*/
public static WebContents createWebContentsWithWarmRenderer(
- boolean incognito, boolean initiallyHidden) {
- return nativeCreateWebContents(incognito, initiallyHidden, true);
+ int childProcessParamId, boolean incognito, boolean initiallyHidden) {
+ return nativeCreateWebContents(childProcessParamId, incognito, initiallyHidden, true);
}
- private static native WebContents nativeCreateWebContents(
+ private static native WebContents nativeCreateWebContents(int childProcessParamId,
boolean incognito, boolean initiallyHidden, boolean initializeRenderer);
}

Powered by Google App Engine
This is Rietveld 408576698