-
Notifications
You must be signed in to change notification settings - Fork 888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling brave rewards for Windows #465
Conversation
@gdregalo created issue in brave browser for this PR |
@@ -125,7 +127,13 @@ bool PublisherInfoBackend::EnsureInitialized() { | |||
|
|||
leveldb_env::Options options; | |||
options.create_if_missing = true; | |||
#if defined(OS_WIN) && (defined(UNICODE) || defined(_UNICODE)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#if defined(OS_WIN)
std::string path = base::UTF16ToUTF8(path_.value());
#else
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amended.
d08c021
to
3999e76
Compare
@gdregalo just a heads up, I just rebased this PR to the latest master. Will check out now if everything works on windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run it on windows and it's working. Wallet was created and I could claim grant.
Run npm run test -- brave_unit_tests
and it's passing.
Run npm run test -- brave_browser_tests
and it's failing on one test
1 test crashed:
BraveRewardsBrowserTest.ToggleAutoContribute (../../brave/components/brave_rewards/browser/rewards_service_browsertest.cc:228)
Blocked on security review
@jasonrsadler please check this failing test |
pulled 3999e766f1d451f48e7285da0b32faae815fff39 into #487 |
3999e76
to
5e4267b
Compare
Enabling brave rewards for Windows
This is my first PR to brave-core. I don't know how to handle all the items below. Please someone explain. Please review the code changes. It enables and compiles brave_rewards service into the browser. It pull the latest bat-native-anonize, bat-native-tweetnacl and bat-native-ledger into the project. The bat-native-anonize is still under security review.
It has not been tested thoroughly though. Thanks,
Resolves brave/brave-browser#1165
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist: