-
Notifications
You must be signed in to change notification settings - Fork 873
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
Don't show widevine install prompt when user doesn't want #2980
Conversation
a823dd9
to
663c1dc
Compare
content::RunAllTasksUntilIdle(); | ||
EXPECT_FALSE(observer.bubble_added_); | ||
|
||
// Check permission bubble is visible when user turns it on. |
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.
whitespace
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.
Done.
browser/widevine/widevine_utils.cc
Outdated
profile->GetPrefs()->SetBoolean(kDontAskWidevineInstall, dont_ask); | ||
} | ||
|
||
bool ShouldAskWidevineInstall(content::WebContents* web_contents) { |
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.
I'd prefer not to add these methods... This one is used only once, and it is even shorter to directly query prefs in that place
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.
Yup, deleted.
663c1dc
to
1e66b85
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.
content::RunAllTasksUntilIdle(); | ||
EXPECT_FALSE(observer.bubble_added_); | ||
|
||
// Check permission bubble is visible when user turns it on. |
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.
Done.
browser/widevine/widevine_utils.cc
Outdated
profile->GetPrefs()->SetBoolean(kDontAskWidevineInstall, dont_ask); | ||
} | ||
|
||
bool ShouldAskWidevineInstall(content::WebContents* web_contents) { |
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.
Yup, deleted.
app/brave_generated_resources.grd
Outdated
Don't ask again | ||
</message> | ||
<message name="IDS_SETTINGS_ASK_WIDEVINE_INSTALL_DESC" desc="Text fragment for asking widevine install or not"> | ||
Ask when a site wants to install Widevine on your computer |
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.
Minor nit to add a period "." at the end. "Ask when a site wants to install Widevine on your computer."
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.
Done.
1e66b85
to
3d6b639
Compare
3d6b639
to
da15c9c
Compare
Ping to code owner @bridiver |
User can turn it off from settings page or prompt dialog.
da15c9c
to
d3b1624
Compare
kindly ping @bridiver |
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.
Automated tests pass great; functionality works (ran through test plan). Code changes look good too 👍
User can turn it off from settings page or prompt dialog.
Fix brave/brave-browser#5341
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
yarn test --filter=WidevinePermissionRequestBrowserTest.*
Don't ask again
checkbox in the prompt and click Block buttonAsk Widevine install
option is turned offReviewer Checklist:
After-merge Checklist:
changes has landed on.