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

Unified Diff: content/shell/android/java/src/org/chromium/content_shell/ShellViewAndroidDelegate.java

Issue 2790893004: Delete Android content detectors. (Closed)
Patch Set: Rebase Created 3 years, 8 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698