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

Issue 2487673003: [Media Router] Make per-hostname cast mode selections persist (Closed)

Created:
4 years, 1 month ago by takumif
Modified:
4 years ago
Reviewers:
imcheng, apacible, anthonyvd
CC:
arv+watch_chromium.org, chromium-reviews, media-router+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[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 Committed: https://crrev.com/e5d669a3e9782b50b35a24d2e380b577c73b7a16 Cr-Commit-Position: refs/heads/master@{#435461}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address Jennifer's comments, rebase #

Total comments: 12

Patch Set 3 : Rebase #

Patch Set 4 : Address Derek's comments #

Total comments: 7

Patch Set 5 : Address Jennifer's comments #

Patch Set 6 : Use origin instead of hostname, rebase #

Patch Set 7 : Use url::Origin for serializing origins, rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -38 lines) Patch
M chrome/browser/profiles/profile.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js View 1 2 3 2 chunks +15 lines, -9 lines 0 comments Download
M chrome/browser/resources/media_router/media_router_ui_interface.js View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.h View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.cc View 1 2 3 4 5 6 4 chunks +42 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui_unittest.cc View 1 2 3 4 5 6 18 chunks +81 lines, -28 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc View 1 2 3 4 5 6 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (21 generated)
takumif
apacible@: all the files anthonyvd@: c/b/profiles/profile.cc Please take a look, thank you! https://codereview.chromium.org/2487673003/diff/20001/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc File chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc ...
4 years, 1 month ago (2016-11-08 22:52:16 UTC) #5
apacible
Please create a crbug and attach it to the description. Will follow up patches handle ...
4 years, 1 month ago (2016-11-11 22:40:23 UTC) #6
takumif
Thanks for reviewing! On 2016/11/11 22:40:23, apacible wrote: > Please create a crbug and attach ...
4 years, 1 month ago (2016-11-12 00:08:31 UTC) #8
apacible
On 2016/11/12 00:08:31, takumif wrote: > Thanks for reviewing! > > On 2016/11/11 22:40:23, apacible ...
4 years, 1 month ago (2016-11-14 17:50:45 UTC) #9
anthonyvd
c/b/profiles/* lgtm
4 years, 1 month ago (2016-11-14 19:00:49 UTC) #10
imcheng
Drive-by comments: https://codereview.chromium.org/2487673003/diff/40001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/2487673003/diff/40001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode2132 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:2132: this.setShownCastMode_(initialCastMode); Is it possible to refactor this ...
4 years, 1 month ago (2016-11-14 19:32:28 UTC) #13
imcheng
https://codereview.chromium.org/2487673003/diff/20001/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc File chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc (right): https://codereview.chromium.org/2487673003/diff/20001/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc#newcode422 chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc:422: MediaCastMode initial_cast_mode = What if |initial_cast_mode| is not in ...
4 years, 1 month ago (2016-11-14 19:56:59 UTC) #14
apacible
On 2016/11/14 19:56:59, imcheng wrote: > https://codereview.chromium.org/2487673003/diff/20001/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc > File chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc > (right): > > https://codereview.chromium.org/2487673003/diff/20001/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc#newcode422 ...
4 years, 1 month ago (2016-11-16 01:12:40 UTC) #18
takumif
https://codereview.chromium.org/2487673003/diff/20001/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc File chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc (right): https://codereview.chromium.org/2487673003/diff/20001/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc#newcode422 chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc:422: MediaCastMode initial_cast_mode = On 2016/11/14 19:56:59, imcheng wrote: > ...
4 years, 1 month ago (2016-11-16 01:34:27 UTC) #19
apacible
https://codereview.chromium.org/2487673003/diff/140001/chrome/browser/profiles/profile.cc File chrome/browser/profiles/profile.cc (right): https://codereview.chromium.org/2487673003/diff/140001/chrome/browser/profiles/profile.cc#newcode173 chrome/browser/profiles/profile.cc:173: registry->RegisterDictionaryPref(prefs::kMediaRouterTabMirroringSelected); nit: maybe kMediaRouterTabMirroringSources ? https://codereview.chromium.org/2487673003/diff/140001/chrome/browser/profiles/profile.cc#newcode173 chrome/browser/profiles/profile.cc:173: registry->RegisterDictionaryPref(prefs::kMediaRouterTabMirroringSelected); Can ...
4 years, 1 month ago (2016-11-16 18:51:10 UTC) #20
takumif
https://codereview.chromium.org/2487673003/diff/140001/chrome/browser/profiles/profile.cc File chrome/browser/profiles/profile.cc (right): https://codereview.chromium.org/2487673003/diff/140001/chrome/browser/profiles/profile.cc#newcode173 chrome/browser/profiles/profile.cc:173: registry->RegisterDictionaryPref(prefs::kMediaRouterTabMirroringSelected); On 2016/11/16 18:51:10, apacible wrote: > nit: maybe ...
4 years, 1 month ago (2016-11-17 01:54:51 UTC) #21
imcheng
lgtm
4 years ago (2016-11-29 07:41:44 UTC) #22
apacible
lgtm personal preference -- split out rebase and changes into separate patches. It makes it ...
4 years ago (2016-11-30 21:54:24 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2487673003/220001
4 years ago (2016-11-30 22:53:28 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:220001)
4 years ago (2016-11-30 22:57:53 UTC) #34
commit-bot: I haz the power
4 years ago (2016-11-30 23:01:23 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e5d669a3e9782b50b35a24d2e380b577c73b7a16
Cr-Commit-Position: refs/heads/master@{#435461}

Powered by Google App Engine
This is Rietveld 408576698