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

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

Issue 2666833002: Create entry to PWSharing through ShareHelper (Closed)
Patch Set: Created 3 years, 11 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 6a9f4c3bc4b9df7dfb9ce2b63dce12f80b479347..7df9b53693b0c89523f61441aea6642a2f6ed311 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;
/**
@@ -159,4 +160,13 @@ public class PhysicalWeb {
new Intent(Intent.ACTION_VIEW, Uri.parse(UrlConstants.PHYSICAL_WEB_URL))
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
}
+
+ /**
+ * Checks wheter the Physical Web Sharing feature is enabled.
+ *
+ * @return boolean {@code true} if the feature is enabled
+ */
+ public static boolean isPhysicalWebSharingEnabled() {
cco3 2017/01/31 01:32:57 isSharingEnabled or isSharingFeatureEnabled seems
+ return ChromeFeatureList.isEnabled(PHYSICAL_WEB_SHARING_FEATURE_NAME);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698