Skip to content

Commit

Permalink
Fixes subdomain logging for rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed Dec 6, 2018
1 parent 87acb96 commit ade7ea1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/brave_rewards/browser/rewards_service_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,8 @@ void RewardsServiceImpl::OnLoad(SessionID tab_id, const GURL& url) {
if (baseDomain == "")
return;

const std::string publisher_url = origin.scheme() + "://" + baseDomain + "/";

auto now = base::Time::Now();
ledger::VisitData data(baseDomain,
origin.host(),
Expand All @@ -387,7 +389,7 @@ void RewardsServiceImpl::OnLoad(SessionID tab_id, const GURL& url) {
GetPublisherMonth(now),
GetPublisherYear(now),
baseDomain,
origin.spec(),
publisher_url,
"",
"");
ledger_->OnLoad(data, GetCurrentTimestamp());
Expand Down

0 comments on commit ade7ea1

Please sign in to comment.