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

Unified Diff: chrome/browser/media/android/router/media_router_android.cc

Issue 1292853003: [Presentation API, Android] Implement closing the route (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@create-route
Patch Set: merge Created 5 years, 4 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 | « chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/SessionWrapper.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/android/router/media_router_android.cc
diff --git a/chrome/browser/media/android/router/media_router_android.cc b/chrome/browser/media/android/router/media_router_android.cc
index f47e3f1c1b38380f94294e3243b8699741c4be7a..218cec24451098e392533e2099622c152d43e0cf 100644
--- a/chrome/browser/media/android/router/media_router_android.cc
+++ b/chrome/browser/media/android/router/media_router_android.cc
@@ -98,7 +98,11 @@ void MediaRouterAndroid::JoinRoute(
}
void MediaRouterAndroid::CloseRoute(const MediaRoute::Id& route_id) {
- NOTIMPLEMENTED();
+ JNIEnv* env = base::android::AttachCurrentThread();
+ ScopedJavaLocalRef<jstring> jroute_id =
+ base::android::ConvertUTF8ToJavaString(env, route_id);
+ Java_ChromeMediaRouter_closeRoute(
+ env, java_media_router_.obj(), jroute_id.obj());
}
void MediaRouterAndroid::SendRouteMessage(
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/SessionWrapper.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698