| Index: content/shell/android/java/src/org/chromium/content_shell/ShellViewAndroidDelegate.java
|
| diff --git a/content/shell/android/java/src/org/chromium/content_shell/ShellViewAndroidDelegate.java b/content/shell/android/java/src/org/chromium/content_shell/ShellViewAndroidDelegate.java
|
| index b1102b3aa953d0e7ea939f0c050a72c05afb478f..0e51e9d893b04fb4d382b038e74ed56bd5684c27 100644
|
| --- a/content/shell/android/java/src/org/chromium/content_shell/ShellViewAndroidDelegate.java
|
| +++ b/content/shell/android/java/src/org/chromium/content_shell/ShellViewAndroidDelegate.java
|
| @@ -4,7 +4,6 @@
|
|
|
| package org.chromium.content_shell;
|
|
|
| -import android.content.Intent;
|
| import android.view.ViewGroup;
|
|
|
| import org.chromium.ui.base.ViewAndroidDelegate;
|
| @@ -15,36 +14,11 @@ import org.chromium.ui.base.ViewAndroidDelegate;
|
| */
|
| public class ShellViewAndroidDelegate extends ViewAndroidDelegate {
|
| private final ViewGroup mContainerView;
|
| - private ContentIntentHandler mContentIntentHandler;
|
| -
|
| - /**
|
| - * Interface used to define/modify what {@link #startContentIntent} does.
|
| - */
|
| - public interface ContentIntentHandler {
|
| - /**
|
| - * Called when intent url from content is received.
|
| - * @param intentUrl intent url.
|
| - */
|
| - void onIntentUrlReceived(String intentUrl);
|
| - }
|
|
|
| public ShellViewAndroidDelegate(ViewGroup containerView) {
|
| mContainerView = containerView;
|
| }
|
|
|
| - /**
|
| - * Set the {@link ContentIntentHandler} for {@link #starContentIntent}.
|
| - * @param handler Handler to inject to {@link #startContentIntent}.
|
| - */
|
| - public void setContentIntentHandler(ContentIntentHandler handler) {
|
| - mContentIntentHandler = handler;
|
| - }
|
| -
|
| - @Override
|
| - public void startContentIntent(Intent intent, String intentUrl, boolean isMainFrame) {
|
| - if (mContentIntentHandler != null) mContentIntentHandler.onIntentUrlReceived(intentUrl);
|
| - }
|
| -
|
| @Override
|
| public ViewGroup getContainerView() {
|
| return mContainerView;
|
|
|