-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #17873 - Disable media router by default #9987
Conversation
add7b40
to
119d40e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Also, tested locally and can confirm that no SSDP requests to 239.255.255.250:1900 are made when the feature is left at its default value, or disabled, and that the Cast option is not shown either. All those things work only when the feature is explicitly enabled now.
|
||
bool MediaRouterEnabled(content::BrowserContext* context) { | ||
#if !defined(OS_ANDROID) | ||
if (!base::FeatureList::GetInstance()->IsFeatureOverridden( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Maybe a small comment to clarify that this is done to override the default could be useful.
sub-label="$i18n{mediaRouterEnabledDesc}"> | ||
<template is="dom-if" if="[[shouldShowRestartForMediaRouter_( | ||
prefs.media_router.enable_media_router.value)]]"> | ||
<cr-button on-click="restartBrowser_" slot="more-actions"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting, needs more indent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed!
6f7c073
to
e1c1195
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Verified
Steps:
|
Resolves brave/brave-browser#17873
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Media Router