Skip to content

Commit

Permalink
Merge pull request #921 from brave/publisher-refactor
Browse files Browse the repository at this point in the history
Refactors database
  • Loading branch information
NejcZdovc authored Jan 16, 2019
2 parents 6446479 + e3c864e commit 0ee2f71
Show file tree
Hide file tree
Showing 35 changed files with 2,066 additions and 1,016 deletions.
8 changes: 4 additions & 4 deletions browser/ui/webui/brave_rewards_ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class RewardsDOMHandler : public WebUIMessageHandler,
void GetReconcileStamp(const base::ListValue* args);
void GetAddresses(const base::ListValue* args);
void SaveSetting(const base::ListValue* args);
void OnGetCurrentContributeList(
void OnContentSiteList(
std::unique_ptr<brave_rewards::ContentSiteList>,
uint32_t record);
void OnGetAllBalanceReports(
Expand Down Expand Up @@ -543,10 +543,10 @@ void RewardsDOMHandler::GetAddresses(const base::ListValue* args) {

void RewardsDOMHandler::OnAutoContributePropsReady(
std::unique_ptr<brave_rewards::AutoContributeProps> props) {
rewards_service_->GetCurrentContributeList(0, 0,
rewards_service_->GetContentSiteList(0, 0,
props->contribution_min_time, props->reconcile_stamp,
props->contribution_non_verified,
base::Bind(&RewardsDOMHandler::OnGetCurrentContributeList,
base::Bind(&RewardsDOMHandler::OnContentSiteList,
weak_factory_.GetWeakPtr()));
}

Expand Down Expand Up @@ -659,7 +659,7 @@ void RewardsDOMHandler::RestorePublishers(const base::ListValue *args) {
}
}

void RewardsDOMHandler::OnGetCurrentContributeList(
void RewardsDOMHandler::OnContentSiteList(
std::unique_ptr<brave_rewards::ContentSiteList> list,
uint32_t record) {
if (web_ui()->CanCallJavascript()) {
Expand Down
Loading

0 comments on commit 0ee2f71

Please sign in to comment.