Skip to content

Commit

Permalink
Remove EAFF custom header (fixes brave/brave-browser#16961)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarier committed Jul 15, 2021
1 parent 7ae3687 commit 95934b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
using brave::ResponseCallback;

TEST(BraveReferralsNetworkDelegateHelperTest, ReplaceHeadersForMatchingDomain) {
const std::array<std::tuple<GURL, std::string>, 3> test_cases = {
std::make_tuple<>(GURL("https://eaff.com"), "eaff"),
const std::array<std::tuple<GURL, std::string>, 2> test_cases = {
std::make_tuple<>(GURL("https://api-sandbox.uphold.com"), "uphold"),
std::make_tuple<>(GURL("http://grammarly.com"), "grammarly"),
};
Expand Down
3 changes: 0 additions & 3 deletions components/brave_referrals/browser/brave_referrals_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,9 @@ BraveReferralsHeaders::BraveReferralsHeaders() {
// https://github.com/brave/brave-browser/wiki/Custom-Headers for more
// information. Custom headers are deprecated and new partners use the
// navigator.brave.isBrave() JavaScript API.
constexpr char kPartnerEaffName[] = "eaff";
constexpr char kPartnerUpholdName[] = "uphold";
constexpr char kPartnerGrammarlyName[] = "grammarly";

referral_headers_.push_back(
CreateReferralHeader(kPartnerEaffName, {"eaff.com", "stg.eaff.com"}));
referral_headers_.push_back(CreateReferralHeader(
kPartnerUpholdName, {"sandbox.uphold.com", "api-sandbox.uphold.com",
"uphold.com", "api.uphold.com"}));
Expand Down

0 comments on commit 95934b8

Please sign in to comment.