| Index: chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBleClient.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBleClient.java b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBleClient.java
|
| index 3d11203dee07036d48ff49d3d6fa16f453e0c3a8..71893b7a4c69825f806fafa01c9612c159c9a501 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBleClient.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBleClient.java
|
| @@ -4,7 +4,6 @@
|
|
|
| package org.chromium.chrome.browser.physicalweb;
|
|
|
| -import android.app.Activity;
|
| import android.os.Handler;
|
| import android.os.Looper;
|
|
|
| @@ -14,7 +13,6 @@ import com.google.android.gms.nearby.messages.Message;
|
| import com.google.android.gms.nearby.messages.MessageFilter;
|
| import com.google.android.gms.nearby.messages.MessageListener;
|
|
|
| -import org.chromium.base.Log;
|
| import org.chromium.chrome.browser.AppHooks;
|
|
|
| /**
|
| @@ -74,48 +72,6 @@ public class PhysicalWebBleClient {
|
| }
|
|
|
| /**
|
| - * Begin a background subscription to URLs broadcasted from BLE beacons.
|
| - * This currently does nothing and should be overridden by a subclass.
|
| - * @param callback Callback to be run when subscription task is done, regardless of whether it
|
| - * is successful.
|
| - */
|
| - void backgroundSubscribe(Runnable callback) {
|
| - Log.d(TAG, "background subscribing in empty client");
|
| - if (callback != null) {
|
| - callback.run();
|
| - }
|
| - }
|
| -
|
| - /**
|
| - * Begin a background subscription to URLs broadcasted from BLE beacons.
|
| - * This currently does nothing and should be overridden by a subclass.
|
| - */
|
| - void backgroundSubscribe() {
|
| - backgroundSubscribe(null);
|
| - }
|
| -
|
| - /**
|
| - * Cancel a background subscription to URLs broadcasted from BLE beacons.
|
| - * This currently does nothing and should be overridden by a subclass.
|
| - * @param callback Callback to be run when subscription cancellation task is done, regardless of
|
| - * whether it is successful.
|
| - */
|
| - void backgroundUnsubscribe(Runnable callback) {
|
| - Log.d(TAG, "background unsubscribing in empty client");
|
| - if (callback != null) {
|
| - callback.run();
|
| - }
|
| - }
|
| -
|
| - /**
|
| - * Cancel a background subscription to URLs broadcasted from BLE beacons.
|
| - * This currently does nothing and should be overridden by a subclass.
|
| - */
|
| - void backgroundUnsubscribe() {
|
| - backgroundUnsubscribe(null);
|
| - }
|
| -
|
| - /**
|
| * Create a MessageListener that listens during a background scan.
|
| * @return the MessageListener.
|
| */
|
| @@ -124,23 +80,6 @@ public class PhysicalWebBleClient {
|
| }
|
|
|
| /**
|
| - * Begin a foreground subscription to URLs broadcasted from BLE beacons.
|
| - * This currently does nothing and should be overridden by a subclass.
|
| - * @param activity The Activity that is performing the scan.
|
| - */
|
| - void foregroundSubscribe(Activity activity) {
|
| - Log.d(TAG, "foreground subscribing in empty client");
|
| - }
|
| -
|
| - /**
|
| - * Cancel a foreground subscription to URLs broadcasted from BLE beacons.
|
| - * This currently does nothing and should be overridden by a subclass.
|
| - */
|
| - void foregroundUnsubscribe() {
|
| - Log.d(TAG, "foreground unsubscribing in empty client");
|
| - }
|
| -
|
| - /**
|
| * Create a MessageListener that listens during a foreground scan.
|
| * @return the MessageListener.
|
| */
|
|
|