Skip to content
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

Add rewards parity with browser laptop #241

Merged
merged 84 commits into from
Sep 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
3c1de5a
Adds rewards settings
NejcZdovc Jul 11, 2018
78b8036
Adds ui locale
NejcZdovc Jul 12, 2018
b100ed7
Converts to TS
NejcZdovc Jul 17, 2018
9d62496
Wires first load and settings
NejcZdovc Jul 20, 2018
cd62ade
Updates to brave-ui 0.20
NejcZdovc Aug 1, 2018
a13135d
Adds wallet properties implementation
NejcZdovc Aug 1, 2018
613d08e
Sync with ui 0.21.x
NejcZdovc Aug 7, 2018
52cfd81
Adds fonts
NejcZdovc Aug 8, 2018
2198153
Removes dep to native library in ui
NejcZdovc Aug 8, 2018
382daed
Adds getPromotion
NejcZdovc Aug 8, 2018
e7d24c0
Adds get promotion captcha
NejcZdovc Aug 8, 2018
0bc5289
Adds backup flow
NejcZdovc Aug 9, 2018
34d1b62
Adds recovery flow
NejcZdovc Aug 9, 2018
d198e1e
add error handling for callbacks
bridiver Aug 10, 2018
6581a37
payments/brave_rewards_ui -> brave_rewards
bridiver Aug 10, 2018
958c26b
Payments -> Rewards
bridiver Aug 12, 2018
5145661
Fixes build error
NejcZdovc Aug 13, 2018
89f6837
Switches from boolean to enum for resutls; Fetches new passphrase aft…
NejcZdovc Aug 13, 2018
c7b6756
Handles off state
NejcZdovc Aug 13, 2018
b2806b3
Adds final step to the grant flow
NejcZdovc Aug 13, 2018
e0fd5b5
update bat-native-ledger ref
bridiver Aug 13, 2018
ca8a106
handle initialization independently of wallet creation
bridiver Aug 13, 2018
d5f615b
fix signaling
bridiver Aug 13, 2018
dba8159
Sync with ui 0.21.x 2
NejcZdovc Aug 14, 2018
777b028
Moves recovery success into the wallet alert
NejcZdovc Aug 14, 2018
cfa00b2
Adds error handler when server is down
NejcZdovc Aug 14, 2018
74eeeb8
move one shot event to rewards_service_impl
bridiver Aug 14, 2018
5849c2c
add timestamps for bat-native-ledger
bridiver Aug 14, 2018
98f7654
improve state loading error messages
bridiver Aug 14, 2018
a73a6bf
add URIEncode for ledger client
bridiver Aug 14, 2018
723aa13
fix method sig for uri encode
bridiver Aug 14, 2018
bab1ef3
Sync with ui 0.21.x 2
NejcZdovc Aug 16, 2018
abafdb8
Adds welcome page
NejcZdovc Aug 16, 2018
cb59d2e
Adds reconcile stamp to the ui
NejcZdovc Aug 16, 2018
1f4a641
Adds grants to the wallet; Adds promotion error flow
NejcZdovc Aug 16, 2018
7bc0496
Adds captcha skip
NejcZdovc Aug 16, 2018
c7d1cd9
Adds grants to the recovery process
NejcZdovc Aug 16, 2018
bab304a
Renames Promotion into Grant
NejcZdovc Aug 17, 2018
ed5b3cc
Removes welcome step in grant flow
NejcZdovc Aug 17, 2018
dc1bdb0
Adds probi to the final grant callback
NejcZdovc Aug 17, 2018
4951507
Splits reducer into multiple reducers
NejcZdovc Aug 17, 2018
d8bc5fd
Ranames some leftovers to grant
NejcZdovc Aug 17, 2018
e1ae65e
Updates to the latest library
NejcZdovc Aug 17, 2018
5ac497c
Adds wallet summary
NejcZdovc Aug 17, 2018
10973b1
bump ledger to 387c78b347aa55e96823c4685c26cc650e5384ec
bridiver Aug 24, 2018
aecf0a9
Fixes build problem
NejcZdovc Aug 28, 2018
bffd5ed
Syncs with 0.23
NejcZdovc Aug 28, 2018
9bf4d0e
Adds add fund modal
NejcZdovc Aug 28, 2018
5b9f67c
Converts ms to s
NejcZdovc Aug 28, 2018
cc30a41
Updates DEP
NejcZdovc Aug 29, 2018
755bee8
Adds settings save to the library
NejcZdovc Aug 29, 2018
c36ccc9
Adds allow videos setting
NejcZdovc Aug 29, 2018
e41e9e1
Adds auto contribute setting
NejcZdovc Aug 29, 2018
2fa050c
Updates dep
NejcZdovc Aug 29, 2018
0dadb8e
Sync with 0.23.1
NejcZdovc Aug 29, 2018
a9821ce
Auto contribute table
NejcZdovc Aug 29, 2018
5c75fe3
fix crash when binding callback
bridiver Aug 29, 2018
41cbb06
use sqlite for publisher info
bridiver Aug 30, 2018
93efd04
Adds auto contributions to the ui
NejcZdovc Aug 30, 2018
0a582df
Adds verbose mode for urls
NejcZdovc Aug 31, 2018
9e31890
Adds new functions for publisher list; TOOD implement
NejcZdovc Aug 31, 2018
a4fcabc
implement SavePublisherList and SetTimer
bridiver Sep 1, 2018
750c1d5
lint fixes
bridiver Sep 1, 2018
9aa88b8
Adds favicon to contribute box
NejcZdovc Sep 1, 2018
faa3f4c
Fixes build after YT/TW implementation
NejcZdovc Sep 1, 2018
9d9fdeb
Adds support for verified/excluded
NejcZdovc Sep 1, 2018
248b8f1
implement OnPostData
bridiver Sep 2, 2018
3724e26
Protects against RenderFrameHost
NejcZdovc Sep 2, 2018
5637d60
Dep update
NejcZdovc Sep 2, 2018
c8b4923
Removes pinned
NejcZdovc Sep 2, 2018
e8e11fd
Splits database
NejcZdovc Sep 2, 2018
89f14df
add load/save media publisher info
bridiver Sep 3, 2018
2db29d9
bump ledger dep
bridiver Sep 3, 2018
6a8b19c
filter by percent
bridiver Sep 3, 2018
c76cb4c
Adds publisher list load
NejcZdovc Sep 3, 2018
0876966
Sync with 0.21.1
NejcZdovc Sep 3, 2018
fcc38cc
Updates to the latest 0.21.1; Updated native lib dep; Fixes tests
NejcZdovc Sep 3, 2018
6750dd0
Added tests for Brave Rewards
Sep 3, 2018
c96f678
Merge pull request #375 from jasonrsadler/rewards_test
NejcZdovc Sep 4, 2018
6c33c1b
Updated tests to read endpoint data from test files
Sep 4, 2018
75021f1
Adds reports
NejcZdovc Sep 4, 2018
a7e7505
Renames payment into rewards service
NejcZdovc Sep 4, 2018
aea26f1
Merge pull request #385 from jasonrsadler/file_test_data
NejcZdovc Sep 4, 2018
045893e
Updates dep for native ledger
NejcZdovc Sep 4, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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@123d1dec129528390eaf583d04e5dc2b6c426713",
"vendor/bat-native-ledger": "https://github.com/brave-intl/bat-native-ledger@65b9ec93925f3b99c4bd12282053bdbe011168c9",
"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
2 changes: 1 addition & 1 deletion browser/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ source_set("browser_process") {

deps = [
":version_info",
"//brave/browser/payments",
"//brave/components/brave_rewards/browser",
"//brave/components/brave_shields/browser:brave_shields",
"//brave/components/content_settings/core/browser",
"//brave/common",
Expand Down
11 changes: 7 additions & 4 deletions browser/brave_tab_helpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,21 @@

#include "brave/browser/brave_tab_helpers.h"

#include "brave/browser/payments/buildflags/buildflags.h"
#include "brave/browser/payments/payments_helper.h"
#include "brave/components/brave_rewards/browser/buildflags/buildflags.h"
#include "brave/components/brave_shields/browser/brave_shields_web_contents_observer.h"
#include "content/public/browser/web_contents.h"

#if BUILDFLAG(BRAVE_REWARDS_ENABLED)
#include "brave/components/brave_rewards/browser/rewards_helper.h"
#endif

namespace brave {

void AttachTabHelpers(content::WebContents* web_contents) {
brave_shields::BraveShieldsWebContentsObserver::CreateForWebContents(
web_contents);
#if BUILDFLAG(BRAVE_PAYMENTS_ENABLED)
payments::PaymentsHelper::CreateForWebContents(web_contents);
#if BUILDFLAG(BRAVE_REWARDS_ENABLED)
brave_rewards::RewardsHelper::CreateForWebContents(web_contents);
#endif
}

Expand Down
4 changes: 2 additions & 2 deletions browser/browser_context_keyed_service_factories.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

#include "brave/browser/browser_context_keyed_service_factories.h"

#include "brave/browser/payments/payments_service_factory.h"
#include "brave/components/brave_rewards/browser/rewards_service_factory.h"

namespace brave {

void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
PaymentsServiceFactory::GetInstance();
brave_rewards::RewardsServiceFactory::GetInstance();
}

} // namespace brave
4 changes: 4 additions & 0 deletions browser/net/brave_network_delegate_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ void BraveNetworkDelegateBase::RunNextCallback(
return;
}

if (request->status().status() == net::URLRequestStatus::CANCELED) {
return;
}

// Continue processing callbacks until we hit one that returns PENDING
int rv = net::OK;

Expand Down
4 changes: 4 additions & 0 deletions browser/net/brave_profile_network_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "brave/browser/net/brave_httpse_network_delegate_helper.h"
#include "brave/browser/net/brave_site_hacks_network_delegate_helper.h"
#include "brave/components/brave_rewards/browser/net/network_delegate_helper.h"

BraveProfileNetworkDelegate::BraveProfileNetworkDelegate(
extensions::EventRouterForwarder* event_router) :
Expand All @@ -20,6 +21,9 @@ BraveProfileNetworkDelegate::BraveProfileNetworkDelegate(
brave::OnBeforeURLRequest_HttpsePreFileWork);
before_url_request_callbacks_.push_back(callback);

callback = base::Bind(brave_rewards::OnBeforeURLRequest);
before_url_request_callbacks_.push_back(callback);

brave::OnBeforeStartTransactionCallback start_transactions_callback =
base::Bind(
brave::OnBeforeStartTransaction_SiteHacksWork);
Expand Down
46 changes: 0 additions & 46 deletions browser/payments/BUILD.gn

This file was deleted.

9 changes: 0 additions & 9 deletions browser/payments/buildflags/BUILD.gn

This file was deleted.

25 changes: 0 additions & 25 deletions browser/payments/payments_service.cc

This file was deleted.

61 changes: 0 additions & 61 deletions browser/payments/payments_service.h

This file was deleted.

63 changes: 0 additions & 63 deletions browser/payments/payments_service_factory.cc

This file was deleted.

41 changes: 0 additions & 41 deletions browser/payments/payments_service_factory.h

This file was deleted.

Loading