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

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

Issue 2756513004: Remove unused methods from PhysicalWebBleClient (Closed)
Patch Set: Fix typo Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
*/
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698