| 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 6a9f4c3bc4b9df7dfb9ce2b63dce12f80b479347..6bcb677017ca1518ec4a4e4a8e8f23610fb98fe2 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
|
| @@ -27,6 +27,7 @@ public class PhysicalWeb {
|
| private static final String PREF_IGNORE_OTHER_CLIENTS = "physical_web_ignore_other_clients";
|
| private static final String FEATURE_NAME = "PhysicalWeb";
|
| private static final String IGNORE_OTHER_CLIENTS_FEATURE_NAME = "PhysicalWebIgnoreOtherClients";
|
| + private static final String PHYSICAL_WEB_SHARING_FEATURE_NAME = "PhysicalWebSharing";
|
| private static final int MIN_ANDROID_VERSION = 18;
|
|
|
| /**
|
| @@ -40,6 +41,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 preference is switched to On.
|
| *
|
| * @return boolean {@code true} if the preference is On.
|
|
|