Commit Graph
61 Commits
Author SHA1 Message Date
bridiver 2abcbe8926 fix relative include paths for DEPS 2021-02-09 10:23:43 -07:00
bridiver 0e5152942d c89 rebase 2021-02-07 10:16:15 -07:00
bridiver fb3c0f5561 buildtools/checkdeps/checkdeps.py brave --extra-repos=brave runs succesfully 2021-02-06 13:34:00 -07:00
AlexeyBarabash 093598b0b0 Move sync v2 migration after ProfileSyncService::Initialize()
fixes brave-browser#13636
2021-02-04 23:52:32 -05:00
AlexeyBarabash a4985beea5 Addressed review feedback (include at wrong place) 2021-01-10 15:35:21 +02:00
AlexeyBarabash 0ecbca1071 Addressed review feedback; fixed CI issues 2021-01-10 15:35:21 +02:00
AlexeyBarabash f54565a16c Get rid of IdentityManager call in ProfileSyncService
fixes brave-browser#12984
2021-01-10 14:13:05 +02:00
AlexeyBarabash 6c071fe729 Revert "Merge pull request #7346 from brave/sync_no_identity_manager"
This reverts commit 1df4f6851a, reversing
changes made to ecb32e7549.
2020-12-17 17:08:02 +02:00
AlexeyBarabash 79468a8638 Addressed review feedback; fixed CI issues 2020-12-17 00:53:07 +02:00
AlexeyBarabash 4eff8e52e6 Get rid of IdentityManager call in ProfileSyncService
fixes brave-browser#12984
2020-12-16 00:25:19 +02:00
Pranjal Jumde 4317137ced Fix 3650: Enable google sign in for extensions 2020-08-19 09:10:20 -07:00
Anthony Tseng 62ed79acdd Subclass ProfileSyncService 2020-07-24 14:41:08 -07:00
Anthony Tseng 71ee217b77 Set SelectedTypes to Bookmarks only for new sync chain 2020-07-16 16:47:26 -07:00
Anthony Tseng 3361205828 Subclass unused SyncStoppedReporter 2020-06-18 14:13:30 -07:00
Anthony Tseng be4f1e4609 Overrides set Authorization header in SyncStoppedReporter to comply with how to add BraveServiceKeys in http_bridge.cc 2020-06-11 01:35:54 -07:00
Anthony Tseng 4275aef8a3 Review feedback: patch cleanup 2020-06-08 23:12:26 -07:00
Anthony Tseng cfaa0f85b3 Introduce NetworkTimeHelper to fetch network time which is updated by
every sync server response. If network time is unavailable, local time
will be used and network time will get updated no matter the access token is
accpeted by server or not. So we no longer need extra access fetcher
to get timestamp from server.
Brave sync now won't set primary account in IdentityManager which
interferes with `chrome.identity` extension API
2020-06-08 23:12:23 -07:00
Anthony Tseng ff84a623e1 brave sync points to prodcution when building OFFICIAL_BUILD, otherwise dev 2020-06-08 23:12:22 -07:00
Anthony Tseng fd5f3e3c62 Integrate brave signin flow with IdentityManager 2020-06-08 23:12:22 -07:00
Anthony Tseng a45fec5363 Remove patch of sync_auth_manager_unittest.cc 2020-06-08 23:12:21 -07:00
Anthony Tseng 20e174b723 chromium 83.0.4103.61 upgrade - tests fix 2020-06-08 23:12:21 -07:00
Anthony Tseng 41f839e520 chromium 83.0.4103.61 upgrade 2020-06-08 23:12:21 -07:00
Anthony Tseng b836c1a222 Simplify access token fetching process to be
1. Fetch timestamp from server
2. Compose access token by
   `base64(timestamp_hex|signed_timestamp_hex|public_key_hex)`
2020-06-08 23:12:21 -07:00
Anthony Tseng 81def18ae1 lint fix and sync v1 ui cleanup 2020-06-08 23:12:21 -07:00
Anthony Tseng be351f308e Two clients integration tests 2020-06-08 23:12:20 -07:00
Anthony Tseng e10f98b706 Set polling interval by ClientCommand from server 2020-06-08 23:12:20 -07:00
Anthony Tseng 53cf8a199b Enable sync_integration_tests
1. Fake responses for brave AccessTokenFetcher
2. Fake SignIn (SyncSeed)
3. Fake Invalidation setup
2020-06-08 23:12:19 -07:00
Anthony Tseng 0178940a61 Prevent SyncV1 migration running in unittests 2020-06-08 23:12:19 -07:00
Anthony Tseng 613d792352 Move encryption enforcement from engine to setting UI 2020-06-08 23:12:19 -07:00
Anthony Tseng b1ec15307d Strip off brave sync v1 meta info 2020-06-08 23:12:19 -07:00
Anthony Tseng f1a2eac3d2 Add SyncAuthManagerTest 2020-06-08 23:12:18 -07:00
Anthony Tseng 425e0dda3b SyncAuthManager::ResetKeys should be triggered when sync seed gets clear 2020-06-08 23:12:18 -07:00
Anthony Tseng 1fad0f0495 Remove kSyncV2Enabled override because SyncAuthManager will provide correct info now 2020-06-08 23:12:18 -07:00
Anthony Tseng 32883e910b Add ProfileSyncServiceTest and FakeAccessTokenFetcher 2020-06-08 23:12:18 -07:00
Anthony Tseng a79cea9148 Add ProfileSyncServiceStartupTest 2020-06-08 23:12:17 -07:00
Anthony Tseng d735ee44e3 Observe SyncSeed change to derive signing keys 2020-06-08 23:12:17 -07:00
Anthony Tseng 06cd67596c Prefs migration 2020-06-08 23:12:17 -07:00
Anthony Tseng 041a84cde7 Encrypt/Decrypt seed using os_crypt 2020-06-08 23:12:16 -07:00
Anthony Tseng 114196256d Add Reset button 2020-06-08 23:12:16 -07:00
Anthony Tseng cf883e724e Refine get access token flow 2020-06-08 23:12:15 -07:00
Anthony Tseng 93f9576751 Generate token request from brave sync seed
remove base64 encode

Fetch timestamp from server

missing declaration
2020-06-08 23:12:15 -07:00
Anthony Tseng a681e801da Integrate brave access token fetcher with SyncAuthManager 2020-06-08 23:12:15 -07:00
Anthony Tseng 5948e48614 local server integration 2020-06-08 23:12:14 -07:00
Anthony Tseng 32a31c66c7 Remove brave sync codes from chromium 2020-06-08 23:12:13 -07:00
Anthony Tseng 33b3d7a1bc Check result from ProfileSyncServiceFactory::GetForProfile which will
be null when --disable-sync specified

Also remove redundant `--disable-brave-sync` switch because brave sync relies
on chromium sync, it won't work properly with chromium sync disabled.
2020-02-06 22:13:01 -08:00
Anthony Tseng bad388a584 Move brave sync switches under components/brave_sync 2019-08-21 11:52:33 -07:00
Anthony Tseng 220d6042e1 Review Feedback (2)
1. Remvoe weak_ptr for syncer and make sure get_record_cb_ won't get
  called when sync_thread is not running
  2. Remove unnecessary forward declaration
2019-08-19 15:10:03 -07:00
Anthony Tseng 99b97f5d4a Review Feedback (1)
1. Patch standardization
2. Apply clang-format
2019-08-19 15:10:03 -07:00
Anthony Tseng 7fcee9d29b Fix enable_brave_sync=false
Remove unused code
2019-08-19 15:10:01 -07:00
AlexeyBarabash 60d93e04d2 BraveProfileSyncService => BraveProfileSyncServiceImpl; BraveProfileSyncServiceExports => BraveProfileSyncService 2019-08-19 15:09:59 -07:00