-
Notifications
You must be signed in to change notification settings - Fork 892
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
Users are not rewarded for viewing an NTP SI until the browser is restarted #12766
Conversation
8b4fdb5
to
eb1a297
Compare
@@ -43,6 +44,10 @@ void Migration::FromVersion(const int from_version, ResultCallback callback) { | |||
return; | |||
} | |||
|
|||
// TODO(https://github.com/brave/brave-browser/issues/14728): Decouple catalog | |||
// business logic once we have implemented database observers | |||
ResetCatalog(); |
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.
Database migration deletes the catalog database tables, therefore we need to reset the catalog to force a new catalog to be fetched after upgrade
.WillByDefault( | ||
Invoke([](const std::string& path) { g_prefs.erase(path); })); | ||
.WillByDefault(Invoke([](const std::string& path) { | ||
const std::string pref_path = GetUuidForCurrentTest(path); |
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.
Fixes a bug where mocks did not clear the pref due to using the wrong path
ee63de1
to
cdb1a32
Compare
43d5fab
to
f6322b9
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.
iOS++
Resolves brave/brave-browser#13815
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:
Catalog should download after upgrading from 1.34.x to this version