| Index: chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java
|
| diff --git a/chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java b/chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java
|
| index 006b0d56f079f6bb9ccffe7cdf31f2cfe7e5aac6..16a6b3a26bf69d451bddf05ccb36d4db9ace1e63 100644
|
| --- a/chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java
|
| +++ b/chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java
|
| @@ -352,8 +352,8 @@
|
| * Load a url in a new tab. The {@link Tab} will pretend to be created from a link.
|
| * @param url The url of the page to load.
|
| */
|
| - public void loadUrlInNewTab(final String url) throws InterruptedException {
|
| - loadUrlInNewTab(url, false);
|
| + public Tab loadUrlInNewTab(final String url) throws InterruptedException {
|
| + return loadUrlInNewTab(url, false);
|
| }
|
|
|
| /**
|
| @@ -361,7 +361,7 @@
|
| * @param url The url of the page to load.
|
| * @param incognito Whether the new tab should be incognito.
|
| */
|
| - public void loadUrlInNewTab(final String url, final boolean incognito)
|
| + public Tab loadUrlInNewTab(final String url, final boolean incognito)
|
| throws InterruptedException {
|
| Tab tab = null;
|
| if (FeatureUtilities.isDocumentMode(getInstrumentation().getContext())) {
|
| @@ -405,6 +405,7 @@
|
| }
|
| ChromeTabUtils.waitForTabPageLoaded(tab, url);
|
| getInstrumentation().waitForIdleSync();
|
| + return tab;
|
| }
|
|
|
| /**
|
|
|