| Index: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java
|
| diff --git a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java
|
| index c06fa6c0658d4374a04085dd645dcc05feb92d87..701106ec2f7148d81cf2ede3c5f2fd217dca445d 100644
|
| --- a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java
|
| +++ b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java
|
| @@ -17,12 +17,9 @@ import java.util.concurrent.TimeoutException;
|
| * This class is used to provide callback hooks for tests and related classes.
|
| */
|
| public class TestCallbackHelperContainer {
|
| - private final TestContentViewClient mTestContentViewClient;
|
| private TestWebContentsObserver mTestWebContentsObserver;
|
|
|
| public TestCallbackHelperContainer(final ContentViewCore contentViewCore) {
|
| - mTestContentViewClient = new TestContentViewClient();
|
| - contentViewCore.setContentViewClient(mTestContentViewClient);
|
| // TODO(yfriedman): Change callers to be executed on the UI thread. Unfortunately this is
|
| // super convenient as the caller is nearly always on the test thread which is fine to block
|
| // and it's cumbersome to keep bouncing to the UI thread.
|
| @@ -35,12 +32,6 @@ public class TestCallbackHelperContainer {
|
| });
|
| }
|
|
|
| - protected TestCallbackHelperContainer(
|
| - TestContentViewClient viewClient, TestWebContentsObserver contentsObserver) {
|
| - mTestContentViewClient = viewClient;
|
| - mTestWebContentsObserver = contentsObserver;
|
| - }
|
| -
|
| /**
|
| * CallbackHelper for OnPageCommitVisible.
|
| */
|
| @@ -181,21 +172,6 @@ public class TestCallbackHelperContainer {
|
| }
|
| }
|
|
|
| - /**
|
| - * CallbackHelper for OnStartContentIntent.
|
| - */
|
| - public static class OnStartContentIntentHelper extends CallbackHelper {
|
| - private String mIntentUrl;
|
| - public void notifyCalled(String intentUrl) {
|
| - mIntentUrl = intentUrl;
|
| - notifyCalled();
|
| - }
|
| - public String getIntentUrl() {
|
| - assert getCallCount() > 0;
|
| - return mIntentUrl;
|
| - }
|
| - }
|
| -
|
| public OnPageStartedHelper getOnPageStartedHelper() {
|
| return mTestWebContentsObserver.getOnPageStartedHelper();
|
| }
|
| @@ -207,8 +183,4 @@ public class TestCallbackHelperContainer {
|
| public OnReceivedErrorHelper getOnReceivedErrorHelper() {
|
| return mTestWebContentsObserver.getOnReceivedErrorHelper();
|
| }
|
| -
|
| - public OnStartContentIntentHelper getOnStartContentIntentHelper() {
|
| - return mTestContentViewClient.getOnStartContentIntentHelper();
|
| - }
|
| }
|
|
|