| 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.
|
| *
|
|
|