New issue
Advanced search Search tips

Issue 664671 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Feature



Sign in to add a comment

[Media Router] Make per-hostname cast mode selections persist

Project Member Reported by taku...@chromium.org, Nov 11 2016

Issue description

Currently if user wants to use a non-default cast mode (e.g. tab-mirroring on YouTube), they must change the cast mode manually every time they cast. We should save user selections so that their last selection for that site/hostname is chosen automatically when they open the dialog.

Since the list of per-hostname selections can get long, the pref shouldn't be syncable. We also don't save the selection of desktop mirroring, since that's not related to the sites the user is on.

Background info at go/media-router-modes.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Nov 30 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e5d669a3e9782b50b35a24d2e380b577c73b7a16

commit e5d669a3e9782b50b35a24d2e380b577c73b7a16
Author: takumif <takumif@chromium.org>
Date: Wed Nov 30 22:57:17 2016

[Media Router] Make per-hostname cast mode selections persist

This change adds a non-synced pref to record per-hostname cast mode selections
made by user in a MR dialog. Whenever the user opens a MR dialog on a site with
a recorded preference, the cast mode selection in the dialog will default to it.

We do not record the user selecting the desktop mirroring mode, since that cast
mode is not associated with the sites the user is on.

BUG= 664671 
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2487673003
Cr-Commit-Position: refs/heads/master@{#435461}

[modify] https://crrev.com/e5d669a3e9782b50b35a24d2e380b577c73b7a16/chrome/browser/profiles/profile.cc
[modify] https://crrev.com/e5d669a3e9782b50b35a24d2e380b577c73b7a16/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
[modify] https://crrev.com/e5d669a3e9782b50b35a24d2e380b577c73b7a16/chrome/browser/resources/media_router/media_router_ui_interface.js
[modify] https://crrev.com/e5d669a3e9782b50b35a24d2e380b577c73b7a16/chrome/browser/ui/webui/media_router/media_router_ui.cc
[modify] https://crrev.com/e5d669a3e9782b50b35a24d2e380b577c73b7a16/chrome/browser/ui/webui/media_router/media_router_ui.h
[modify] https://crrev.com/e5d669a3e9782b50b35a24d2e380b577c73b7a16/chrome/browser/ui/webui/media_router/media_router_ui_unittest.cc
[modify] https://crrev.com/e5d669a3e9782b50b35a24d2e380b577c73b7a16/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc
[modify] https://crrev.com/e5d669a3e9782b50b35a24d2e380b577c73b7a16/chrome/common/pref_names.cc
[modify] https://crrev.com/e5d669a3e9782b50b35a24d2e380b577c73b7a16/chrome/common/pref_names.h

Project Member

Comment 2 by bugdroid1@chromium.org, Dec 9 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f5da68f68b47ec803e5e9da660c885afb6713efe

commit f5da68f68b47ec803e5e9da660c885afb6713efe
Author: takumif <takumif@chromium.org>
Date: Fri Dec 09 23:42:20 2016

[MR] Cancel auto-switching from tab mirroring to Cast SDK based on user pref

This change makes PresentationServiceDelegateImpl cancel requests to join
session if they have the "auto-join" presentation ID and the user pref is set to
tab mirroring for the origin. This way, when a page requests to auto-switch from
tab mirroring to Cast SDK on a site where the user has chosen to use tab
mirroring, the auto-switching gets cancelled.

This CL relies on a profile pref introduced by
https://codereview.chromium.org/2487673003/.

BUG= 664671 

Review-Url: https://codereview.chromium.org/2517833004
Cr-Commit-Position: refs/heads/master@{#437699}

[modify] https://crrev.com/f5da68f68b47ec803e5e9da660c885afb6713efe/chrome/browser/media/router/media_source_helper.cc
[modify] https://crrev.com/f5da68f68b47ec803e5e9da660c885afb6713efe/chrome/browser/media/router/media_source_helper.h
[modify] https://crrev.com/f5da68f68b47ec803e5e9da660c885afb6713efe/chrome/browser/media/router/presentation_service_delegate_impl.cc
[modify] https://crrev.com/f5da68f68b47ec803e5e9da660c885afb6713efe/chrome/browser/media/router/presentation_service_delegate_impl.h
[modify] https://crrev.com/f5da68f68b47ec803e5e9da660c885afb6713efe/chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc
[modify] https://crrev.com/f5da68f68b47ec803e5e9da660c885afb6713efe/chrome/browser/prefs/pref_service_syncable_util.cc

Status: Fixed (was: Started)

Sign in to add a comment