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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java

Issue 2720273003: [Media Router] Remove binary messaging implementation. (Closed)
Patch Set: Apply suggested patch 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/media/router/MediaRouteProvider.java » ('j') | 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/media/router/ChromeMediaRouter.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java b/chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java
index 9236349266cbd2af670f208acdfa62439eaae286..a4e96c4da74363269c4981d97656b72dc3bee6f7 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java
@@ -327,23 +327,6 @@ public class ChromeMediaRouter implements MediaRouteManager {
provider.sendStringMessage(routeId, message, callbackId);
}
- /**
- * Sends a binary message to the specified route.
- * @param routeId The id of the route to send the message to.
- * @param data The binary message to send.
- * @param callbackId The id of the result callback tracked by the native side.
- */
- @CalledByNative
- public void sendBinaryMessage(String routeId, byte[] data, int callbackId) {
- MediaRouteProvider provider = mRouteIdsToProviders.get(routeId);
- if (provider == null) {
- nativeOnMessageSentResult(mNativeMediaRouterAndroid, false, callbackId);
- return;
- }
-
- provider.sendBinaryMessage(routeId, data, callbackId);
- }
-
@VisibleForTesting
protected ChromeMediaRouter(long nativeMediaRouter) {
mNativeMediaRouterAndroid = nativeMediaRouter;
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/media/router/MediaRouteProvider.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698