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

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

Issue 2112673002: Removing references to Off the Record from MediaRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More refactoring on rebased code Created 4 years, 5 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
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 e29a9057d8c2ed3661a075a7aaa743ec3b4b43f6..6e8f811648c07ba5ba361c950187c69294c0d29c 100644
--- a/chrome/browser/media/router/presentation_service_delegate_impl.cc
+++ b/chrome/browser/media/router/presentation_service_delegate_impl.cc
@@ -749,20 +749,19 @@ void PresentationServiceDelegateImpl::JoinSession(
const std::string& presentation_id,
const content::PresentationSessionStartedCallback& success_cb,
const content::PresentationSessionErrorCallback& error_cb) {
- bool off_the_record = web_contents_->GetBrowserContext()->IsOffTheRecord();
+ bool incognito = web_contents_->GetBrowserContext()->IsOffTheRecord();
std::vector<MediaRouteResponseCallback> route_response_callbacks;
route_response_callbacks.push_back(base::Bind(
&PresentationServiceDelegateImpl::OnJoinRouteResponse,
weak_factory_.GetWeakPtr(), render_process_id, render_frame_id,
content::PresentationSessionInfo(presentation_url, presentation_id),
success_cb, error_cb));
- router_->JoinRoute(MediaSourceForPresentationUrl(presentation_url).id(),
- presentation_id,
- GetLastCommittedURLForFrame(
- RenderFrameHostId(render_process_id, render_frame_id))
- .GetOrigin(),
- web_contents_, route_response_callbacks, base::TimeDelta(),
- off_the_record);
+ router_->JoinRoute(
+ MediaSourceForPresentationUrl(presentation_url).id(), presentation_id,
+ GetLastCommittedURLForFrame(
+ RenderFrameHostId(render_process_id, render_frame_id))
+ .GetOrigin(),
+ web_contents_, route_response_callbacks, base::TimeDelta(), incognito);
}
void PresentationServiceDelegateImpl::CloseConnection(

Powered by Google App Engine
This is Rietveld 408576698