From 27f4c8b4e6fc1967eb6ece69e0d41375d59d710d Mon Sep 17 00:00:00 2001 From: Jason Sadler Date: Sun, 2 Dec 2018 23:57:34 -0500 Subject: [PATCH] Merge pull request #186 from ryanml/banner-provider Adding provider to ledger::PublisherBanner --- include/bat/ledger/publisher_info.h | 1 + src/bat/ledger/ledger.cc | 1 + src/bat_publishers.cc | 1 + 3 files changed, 3 insertions(+) diff --git a/include/bat/ledger/publisher_info.h b/include/bat/ledger/publisher_info.h index 6a7628090d7f..bd7e2e5d3fd1 100644 --- a/include/bat/ledger/publisher_info.h +++ b/include/bat/ledger/publisher_info.h @@ -90,6 +90,7 @@ LEDGER_EXPORT struct PublisherBanner { std::string background; std::string logo; std::vector amounts; + std::string provider; std::map social; }; diff --git a/src/bat/ledger/ledger.cc b/src/bat/ledger/ledger.cc index 2a857acf9ba2..18f18173f8b1 100644 --- a/src/bat/ledger/ledger.cc +++ b/src/bat/ledger/ledger.cc @@ -111,6 +111,7 @@ PublisherBanner::PublisherBanner(const PublisherBanner& info) : background(info.background), logo(info.logo), amounts(info.amounts), + provider(info.provider), social(info.social) {} PublisherBanner::~PublisherBanner() {} diff --git a/src/bat_publishers.cc b/src/bat_publishers.cc index 25b303281875..e7a7ef3943ab 100644 --- a/src/bat_publishers.cc +++ b/src/bat_publishers.cc @@ -909,6 +909,7 @@ void BatPublishers::onPublisherBanner(ledger::PublisherBannerCallback callback, } new_banner->name = publisher_info->name; + new_banner->provider = publisher_info->provider; if (new_banner->logo.empty()) { new_banner->logo = publisher_info->favicon_url;