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

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

Issue 2695163002: Add PhysicalWebShareActivity (Closed)
Patch Set: Rebasing Again Created 3 years, 10 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
Index: chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWeb.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWeb.java b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWeb.java
index d19dca723e369580728ccfa2899af3b9f7184d9b..20e2d4291d621dc1488cbb111da62d97837685b5 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWeb.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWeb.java
@@ -25,6 +25,7 @@ public class PhysicalWeb {
public static final int OPTIN_NOTIFY_MAX_TRIES = 1;
private static final String PREF_PHYSICAL_WEB_NOTIFY_COUNT = "physical_web_notify_count";
private static final String FEATURE_NAME = "PhysicalWeb";
+ private static final String PHYSICAL_WEB_SHARING_FEATURE_NAME = "PhysicalWebSharing";
private static final int MIN_ANDROID_VERSION = 18;
/**
@@ -47,6 +48,15 @@ public class PhysicalWeb {
}
/**
+ * Checks whether the Physical Web Sharing feature is enabled.
+ *
+ * @return boolean {@code true} if the feature is enabled
+ */
+ public static boolean sharingIsEnabled() {
+ return ChromeFeatureList.isEnabled(PHYSICAL_WEB_SHARING_FEATURE_NAME);
+ }
+
+ /**
* Checks whether the Physical Web onboard flow is active and the user has
* not yet elected to either enable or decline the feature.
*

Powered by Google App Engine
This is Rietveld 408576698