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

Unified Diff: chrome/browser/media/router/presentation_service_delegate_impl.cc

Issue 2665103002: [Media Router] Remove GetRouteIds() from PresentationServiceDelegateImpl. (Closed)
Patch Set: Created 3 years, 11 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/browser/media/router/presentation_service_delegate_impl.cc
diff --git a/chrome/browser/media/router/presentation_service_delegate_impl.cc b/chrome/browser/media/router/presentation_service_delegate_impl.cc
index e938d757883b27bf872c800695bdb5cb58167398..ea2dc3ab93046a411d66b7f3566e017628a9b0e2 100644
--- a/chrome/browser/media/router/presentation_service_delegate_impl.cc
+++ b/chrome/browser/media/router/presentation_service_delegate_impl.cc
@@ -157,7 +157,6 @@ class PresentationFrame {
const MediaRoute::Id& route_id);
const MediaRoute::Id GetRouteId(const std::string& presentation_id) const;
- const std::vector<MediaRoute::Id> GetRouteIds() const;
void OnPresentationSessionStarted(
const content::PresentationSessionInfo& session,
@@ -215,13 +214,6 @@ const MediaRoute::Id PresentationFrame::GetRouteId(
return it != presentation_id_to_route_id_.end() ? it->second : "";
}
-const std::vector<MediaRoute::Id> PresentationFrame::GetRouteIds() const {
- std::vector<MediaRoute::Id> route_ids;
- for (const auto& e : presentation_id_to_route_id_)
- route_ids.push_back(e.second);
- return route_ids;
-}
-
bool PresentationFrame::SetScreenAvailabilityListener(
content::PresentationScreenAvailabilityListener* listener) {
MediaSource source(GetMediaSourceFromListener(listener));
@@ -398,8 +390,6 @@ class PresentationFrameManager {
const MediaRoute::Id GetRouteId(const RenderFrameHostId& render_frame_host_id,
const std::string& presentation_id) const;
- const std::vector<MediaRoute::Id> GetRouteIds(
- const RenderFrameHostId& render_frame_host_id) const;
const PresentationRequest* default_presentation_request() const {
return default_presentation_request_.get();
@@ -483,13 +473,6 @@ const MediaRoute::Id PresentationFrameManager::GetRouteId(
? it->second->GetRouteId(presentation_id) : MediaRoute::Id();
}
-const std::vector<MediaRoute::Id> PresentationFrameManager::GetRouteIds(
- const RenderFrameHostId& render_frame_host_id) const {
- const auto it = presentation_frames_.find(render_frame_host_id);
- return it != presentation_frames_.end() ? it->second->GetRouteIds()
- : std::vector<MediaRoute::Id>();
-}
-
bool PresentationFrameManager::SetScreenAvailabilityListener(
const RenderFrameHostId& render_frame_host_id,
content::PresentationScreenAvailabilityListener* listener) {
« 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