| Index: chrome/browser/media/router/offscreen_presentation_manager.cc
|
| diff --git a/chrome/browser/media/router/offscreen_presentation_manager.cc b/chrome/browser/media/router/offscreen_presentation_manager.cc
|
| index 5ccf31f143a39d0b2e83e7de33260d2ee26da2da..e01498c8eaff462a60852e25719beba768587d12 100644
|
| --- a/chrome/browser/media/router/offscreen_presentation_manager.cc
|
| +++ b/chrome/browser/media/router/offscreen_presentation_manager.cc
|
| @@ -20,6 +20,7 @@ OffscreenPresentationManager::~OffscreenPresentationManager() {}
|
|
|
| void OffscreenPresentationManager::RegisterOffscreenPresentationController(
|
| const std::string& presentation_id,
|
| + const std::string& presentation_url,
|
| int render_frame_id,
|
| content::OffscreenPresentationClient* controller) {
|
| DVLOG(2) << __FUNCTION__ << " [presentation_id]: " << presentation_id
|
| @@ -29,9 +30,9 @@ void OffscreenPresentationManager::RegisterOffscreenPresentationController(
|
| // Create a new presentation.
|
| if (it == offscreen_presentations_.end()) {
|
| it = offscreen_presentations_
|
| - .insert(std::make_pair(
|
| - presentation_id,
|
| - base::MakeUnique<OffscreenPresentation>(presentation_id)))
|
| + .insert(std::make_pair(presentation_id,
|
| + base::MakeUnique<OffscreenPresentation>(
|
| + presentation_id, presentation_url)))
|
| .first;
|
| }
|
| it->second->RegisterController(render_frame_id, controller);
|
| @@ -71,8 +72,12 @@ void OffscreenPresentationManager::UnregisterOffscreenPresentationReceiver(
|
| }
|
|
|
| // OffscreenPresentation implementation. ///////////////////////////////////////
|
| -OffscreenPresentation::OffscreenPresentation(const std::string& presentation_id)
|
| - : presentation_id_(presentation_id), receiver_callback_(nullptr) {}
|
| +OffscreenPresentation::OffscreenPresentation(
|
| + const std::string& presentation_id,
|
| + const std::string& presentation_url)
|
| + : presentation_id_(presentation_id),
|
| + presentation_url_(presentation_url),
|
| + receiver_callback_(nullptr) {}
|
|
|
| OffscreenPresentation::~OffscreenPresentation() {}
|
|
|
|
|