-
Notifications
You must be signed in to change notification settings - Fork 879
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 Ads enabled for unsupported regions and enabled by default after 0.63.x update #2232
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
emerick
reviewed
Apr 16, 2019
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.
Probably should have some unit tests for this.
ryanml
changed the title
[WIP] Fix Ads enabled for unsupported regions
Fix Ads enabled for unsupported regions, Fixes Ads upgrade issues
Apr 17, 2019
tmancey
force-pushed
the
issues/3967
branch
8 times, most recently
from
April 17, 2019 15:03
11e4d16
to
74c486a
Compare
tmancey
changed the title
Fix Ads enabled for unsupported regions, Fixes Ads upgrade issues
Fix Ads enabled for unsupported regions and are enabled by default after update to 0.63.x
Apr 17, 2019
tmancey
force-pushed
the
issues/3967
branch
2 times, most recently
from
April 17, 2019 15:08
369629a
to
a6718ea
Compare
tmancey
changed the title
Fix Ads enabled for unsupported regions and are enabled by default after update to 0.63.x
Fix Ads enabled for unsupported regions and enabled by default after update to 0.63.x
Apr 17, 2019
tmancey
force-pushed
the
issues/3967
branch
3 times, most recently
from
April 17, 2019 15:41
45a7773
to
45b607d
Compare
ryanml
approved these changes
Apr 17, 2019
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.
Test plans work great through the changes, all lgtm
ryanml
added a commit
that referenced
this pull request
Apr 17, 2019
Fix Ads enabled for unsupported regions and enabled by default after 0.63.x update
ryanml
added a commit
that referenced
this pull request
Apr 17, 2019
Fix Ads enabled for unsupported regions and enabled by default after 0.63.x update
3 tasks
tmancey
pushed a commit
that referenced
this pull request
Apr 17, 2019
Fix Ads enabled for unsupported regions and enabled by default after 0.63.x update
tmancey
pushed a commit
that referenced
this pull request
Apr 17, 2019
Fix Ads enabled for unsupported regions and enabled by default after 0.63.x update
tmancey
pushed a commit
that referenced
this pull request
Apr 18, 2019
Fix Ads enabled for unsupported regions and enabled by default after 0.63.x update # Conflicts: # browser/ui/webui/brave_rewards_ui.cc # components/brave_rewards/resources/ui/brave_rewards.tsx # components/brave_rewards/resources/ui/constants/rewards_types.ts
tmancey
pushed a commit
that referenced
this pull request
Apr 18, 2019
Fix Ads enabled for unsupported regions and enabled by default after 0.63.x update # Conflicts: # browser/ui/webui/brave_rewards_ui.cc # components/brave_rewards/resources/ui/brave_rewards.tsx # components/brave_rewards/resources/ui/constants/rewards_types.ts
This was referenced Apr 18, 2019
tmancey
pushed a commit
that referenced
this pull request
Apr 18, 2019
Fix Ads enabled for unsupported regions and enabled by default after 0.63.x update
tmancey
pushed a commit
that referenced
this pull request
Apr 18, 2019
Fix Ads enabled for unsupported regions and enabled by default after 0.63.x update
tmancey
pushed a commit
that referenced
this pull request
Apr 18, 2019
Fix Ads enabled for unsupported regions and enabled by default after 0.63.x update
tmancey
pushed a commit
that referenced
this pull request
Apr 18, 2019
Fix Ads enabled for unsupported regions and enabled by default after 0.63.x update
tmancey
pushed a commit
that referenced
this pull request
Apr 19, 2019
Fix Ads enabled for unsupported regions and enabled by default after 0.63.x update # Conflicts: # browser/ui/webui/brave_rewards_ui.cc # components/brave_rewards/resources/ui/brave_rewards.tsx # components/brave_rewards/resources/ui/constants/rewards_types.ts
tmancey
pushed a commit
that referenced
this pull request
Apr 19, 2019
Fix Ads enabled for unsupported regions and enabled by default after 0.63.x update
tmancey
added a commit
that referenced
this pull request
Apr 19, 2019
Fix Ads enabled for unsupported regions and enabled by default after 0.63.x update
tmancey
added a commit
that referenced
this pull request
Apr 19, 2019
Fix Ads enabled for unsupported regions and enabled by default after 0.63.x update
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes brave/brave-browser#3967
fixes: brave/brave-browser#4131
Several steps were taken to harden the process for retrieving and reacting to whether or not the user's region is supported.
Also hardened were the preference migrations during upgrade, so Ads does not enable on upgrade if it was disabled previously.
Submitter Checklist:
npm test brave_unit_tests && npm test brave_browser_tests && npm run test-security
) onnpm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Confirm Ads UI is only shown for supported regions: US, UK, Canada, France and Germany based upon the operating systems locale.
Additional test plan for upgrade here: brave/brave-browser#4131
Reviewer Checklist: