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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/AppLinkHandler.java

Issue 1956403002: Re-submit of AppLink implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Lock it and throw away the key Created 4 years, 7 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 | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
+ }
+
+}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698