Skip to content

Commit

Permalink
Incorporate code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
emerick committed Jun 4, 2018
1 parent ba8d6b4 commit 42fba3f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace {

std::vector<FilterList>::const_iterator FindFilterListByLocale(const std::string& locale) {
return std::find_if(region_lists.begin(), region_lists.end(),
[locale](const FilterList& filter_list) {
[&locale](const FilterList& filter_list) {
return std::find_if(filter_list.langs.begin(),
filter_list.langs.end(),
[locale](const std::string& lang) {
Expand All @@ -47,11 +47,6 @@ AdBlockRegionalService::AdBlockRegionalService() {
}

AdBlockRegionalService::~AdBlockRegionalService() {
Cleanup();
}

void AdBlockRegionalService::Cleanup() {
AdBlockBaseService::Cleanup();
}

bool AdBlockRegionalService::ShouldStartRequest(const GURL& url,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class AdBlockRegionalService : public AdBlockBaseService {

protected:
bool Init() override;
void Cleanup() override;
void OnComponentRegistered(const std::string& component_id) override;
void OnComponentReady(const std::string& component_id,
const base::FilePath& install_dir) override;
Expand Down
5 changes: 0 additions & 5 deletions components/brave_shields/browser/ad_block_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ AdBlockService::AdBlockService() {
}

AdBlockService::~AdBlockService() {
Cleanup();
}

void AdBlockService::Cleanup() {
AdBlockBaseService::Cleanup();
}

bool AdBlockService::ShouldStartRequest(const GURL& url,
Expand Down
1 change: 0 additions & 1 deletion components/brave_shields/browser/ad_block_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class AdBlockService : public AdBlockBaseService {

protected:
bool Init() override;
void Cleanup() override;
void OnComponentReady(const std::string& component_id,
const base::FilePath& install_dir) override;

Expand Down

0 comments on commit 42fba3f

Please sign in to comment.