-
Notifications
You must be signed in to change notification settings - Fork 901
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
Ads Confirmations #1645
Ads Confirmations #1645
Conversation
@@ -17,6 +17,8 @@ | |||
#include "bat/ads/ads_client.h" | |||
#include "brave/components/brave_ads/browser/ads_service.h" | |||
#include "brave/components/brave_ads/browser/background_helper.h" | |||
#include "brave/components/brave_rewards/browser/rewards_service.h" |
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.
these headers should go in the .cc file - there is already a forward decl below for RewardsService
@@ -297,14 +297,29 @@ void RewardsNotificationServiceImpl::OnGetAllNotifications( | |||
TriggerOnGetAllNotifications(rewards_notifications_list); | |||
} | |||
|
|||
std::string RewardsNotificationServiceImpl::GetGrantIdPrefix( | |||
const std::string& grant_type) { | |||
std::string prefix = grant_type == "ugp" |
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.
grant_type == "ugp" should be a method to remove duplication
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
@@ -21,6 +21,11 @@ | |||
class PrefRegistrySimple; | |||
class Profile; | |||
|
|||
namespace ads { |
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.
these are not needed
@@ -182,6 +182,25 @@ class RewardsServiceImpl : public RewardsService, | |||
|
|||
void GetAddressesForPaymentId(const GetAddressesCallback& callback) override; | |||
|
|||
void SetCatalogIssuers(const std::string& json) override; |
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.
these should all be listed under // LedgerClient impl
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.
Just checked, and it is now listed under so I gather you made this change
6421522
to
be685ae
Compare
ce09db9
to
23226ee
Compare
6c9a062
to
268c810
Compare
@ryanml when everything is done from UI perspective please let me know so that I can do a review of it. Please do not merge until I do that. Thank you |
9077d15
to
4f7be73
Compare
a4f3c9c
to
f5447d7
Compare
8fd1062
to
5ff0738
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.
Approving as @bridiver already approved it as well
fixes brave/brave-browser#3117
fixes brave/brave-browser#2830
fixes brave/brave-browser#2912
fixes brave/brave-browser#2910
fixes brave/brave-browser#2909
fixes brave/brave-browser#2908
fixes brave/brave-browser#2907
fixes brave/brave-browser#2906
requires brave/brave-browser#3406
requires brave-intl/bat-native-confirmations#67
requires #1751
Submitter Checklist:
npm test brave_unit_tests && npm test brave_browser_tests
) ongit rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist: