-
Notifications
You must be signed in to change notification settings - Fork 910
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
Migrate brave-core changes from Android Ads #2947
Conversation
~NotificationInfo(); | ||
|
||
const std::string ToJson() const; | ||
Result FromJson( | ||
const std::string& json, | ||
std::string* error_description = nullptr); | ||
|
||
std::string id; |
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.
Should add this property to BATAdsNotification
// Should be called when Ads are enabled or disabled on the Client | ||
virtual void Initialize() = 0; | ||
// Should be called when Ads is enabled on the Client | ||
virtual void Initialize(InitializeCallback callback) = 0; |
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.
You changed the Initialize
signature but I don't see a change to how its called in BATBraveAds.mm
as seen here:
// Should be called when the browser enters the foreground | ||
virtual void OnForeground() = 0; | ||
// Should be called when Ads is disabled on the Client | ||
virtual void Shutdown(ShutdownCallback callback) = 0; |
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.
We will want to add this call here:
Closing and reopening #5160 as not picking up branch changes |
92b9390
to
83a9deb
Compare
…emoved from storage
…interaction when destroying AdsImpl
Fixes brave/brave-browser#5160
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
default/ads_service
state is removed when ads are switched offdefault/ads_service
state is created when ads are switched onReviewer Checklist:
After-merge Checklist:
changes has landed on.