Index: chrome/android/java/src/org/chromium/chrome/browser/AppLinkHandler.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/AppLinkHandler.java b/chrome/android/java/src/org/chromium/chrome/browser/AppLinkHandler.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..40aba28a10ed53c38f5ca779d0d224d97f63023c |
--- /dev/null |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/AppLinkHandler.java |
@@ -0,0 +1,38 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+package org.chromium.chrome.browser; |
+ |
+import android.content.Context; |
+import android.content.Intent; |
+ |
+/** App link handler. */ |
+public class AppLinkHandler { |
+ |
+ private static final Object INSTANCE_LOCK = new Object(); |
+ private static AppLinkHandler sInstance; |
+ |
+ public static AppLinkHandler getInstance(ChromeApplication application) { |
+ synchronized (INSTANCE_LOCK) { |
+ if (sInstance == null) { |
+ sInstance = application.createAppLinkHandler(); |
+ } |
+ } |
+ return sInstance; |
+ } |
+ |
+ /** Cache whether the feature is enabled. */ |
+ public void cacheAppLinkEnabled(Context context) { |
+ } |
+ |
+ /** Handle intent. */ |
+ public boolean handleIntent(Context context, Intent intent, boolean isCustomTabsIntent) { |
+ return false; |
+ } |
+ |
+ /** Commit metrics. */ |
+ public void commitMetrics() { |
+ } |
+ |
+} |