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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.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/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java
index 2fd48a11ac1f5d82eaa4b0148dea123981fd7f69..61c1a4551ac3d073ec59f12e06c81f5285829237 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java
@@ -28,6 +28,7 @@ import org.chromium.chrome.test.ChromeActivityTestCaseBase;
import org.chromium.chrome.test.util.InfoBarTestAnimationListener;
import org.chromium.chrome.test.util.InfoBarUtil;
import org.chromium.chrome.test.util.browser.LocationSettingsTestUtil;
+import org.chromium.content.browser.ChildProcessCreationParams;
import org.chromium.content.browser.test.util.Criteria;
import org.chromium.content.browser.test.util.CriteriaHelper;
import org.chromium.content_public.browser.WebContents;
@@ -475,7 +476,8 @@ public class InfoBarTest extends ChromeActivityTestCaseBase<ChromeActivity> {
ThreadUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
- WebContents newContents = WebContentsFactory.createWebContents(false, false);
+ WebContents newContents = WebContentsFactory.createWebContents(
+ ChildProcessCreationParams.DEFAULT_ID, false, false);
getActivity().getActivityTab().swapWebContents(newContents, false, false);
}
});

Powered by Google App Engine
This is Rietveld 408576698