Skip to content

Commit

Permalink
enable/disable production/verbose based on official build status
Browse files Browse the repository at this point in the history
  • Loading branch information
bridiver committed Sep 4, 2018
1 parent 0c509c1 commit 8058ab6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ deps = {
"vendor/boto": "https://github.com/boto/boto@f7574aa6cc2c819430c1f05e9a1a1a666ef8169b",
"vendor/python-patch": "https://github.com/svn2github/python-patch@a336a458016ced89aba90dfc3f4c8222ae3b1403",
"vendor/sparkle": "https://github.com/brave/Sparkle.git@c0759cce415d7c0feae45005c8a013b1898711f0",
"vendor/bat-native-ledger": "https://github.com/brave-intl/bat-native-ledger@65b9ec93925f3b99c4bd12282053bdbe011168c9",
"vendor/bat-native-ledger": "https://github.com/brave-intl/bat-native-ledger@81f53c47bc5e83cc453a1e4e6556b12143a6693a",
"vendor/bat-native-rapidjson": "https://github.com/brave-intl/bat-native-rapidjson.git@86aafe2ef89835ae71c9ed7c2527e3bb3000930e",
"vendor/bip39wally-core-native": "https://github.com/brave-intl/bip39wally-core-native.git@9b119931c702d55be994117eb505d56310720b1d",
"vendor/bat-native-anonize": "https://github.com/brave-intl/bat-native-anonize.git@6f5817c5a4dcabb49e22b578ecae4993159e6481",
Expand Down
13 changes: 13 additions & 0 deletions components/brave_rewards/browser/rewards_service_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,19 @@ RewardsServiceImpl::RewardsServiceImpl(Profile* profile) :
publisher_list_path_(profile->GetPath().Append("publishers_list")),
publisher_info_backend_(new PublisherInfoDatabase(publisher_info_db_path_)),
next_timer_id_(0) {
// TODO(bridiver) - production/verbose should
// also be controllable by command line flags
#if defined(IS_OFFICIAL_BUILD)
ledger::is_production = true;
#else
ledger::is_production = false;
#endif

#if defined(NDEBUG)
ledger::is_verbose = false;
#else
ledger::is_verbose = true;
#endif
}

RewardsServiceImpl::~RewardsServiceImpl() {
Expand Down

0 comments on commit 8058ab6

Please sign in to comment.