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

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

Issue 2666833002: Create entry to PWSharing through ShareHelper (Closed)
Patch Set: Fixing nits 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/PhysicalWebShareActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebShareActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebShareActivity.java
new file mode 100644
index 0000000000000000000000000000000000000000..ed5412359cfe69fcbf9a2f7d7cc4eee48b3ab947
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebShareActivity.java
@@ -0,0 +1,30 @@
+// 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.physicalweb;
+
+import android.os.Build;
+
+import org.chromium.chrome.browser.share.ShareActivity;
+import org.chromium.chrome.browser.tab.Tab;
+
+/**
+ * A simple activity that allows Chrome to start the physical web sharing service.
+ */
+public class PhysicalWebShareActivity extends ShareActivity {
+
+ private static final String TAG = "PhysicalWebShareActivity";
+
+ @Override
+ protected void handleShareAction() {
+ // TODO(iankc): implement sharing
+ }
+
+ @Override
+ public boolean featureIsEnabled(Tab currentTab) {
+ return PhysicalWeb.sharingIsEnabled()
+ && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M;
+ }
+
+}

Powered by Google App Engine
This is Rietveld 408576698