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

Sync v2 #5294

Merged
merged 80 commits into from
Jun 11, 2020
Merged

Sync v2 #5294

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
32a31c6
Remove brave sync codes from chromium
darkdh Feb 26, 2020
b0e7c55
Remove sync-internals redirect
darkdh Feb 26, 2020
cc5f8f4
Make local server code load from disk every time when handling
darkdh Feb 27, 2020
1c07eba
overrides IsCreditCardMigrationEnabled and ShouldManagePasswordsinGoo…
darkdh Feb 28, 2020
a945ddf
Add sync controls to brave sync page
darkdh Mar 4, 2020
5948e48
local server integration
darkdh Apr 1, 2020
1bc6a6e
Add brave sync access token fetcher and consumer
darkdh Apr 6, 2020
a681e80
Integrate brave access token fetcher with SyncAuthManager
darkdh Apr 7, 2020
93f9576
Generate token request from brave sync seed
darkdh Apr 7, 2020
cf883e7
Refine get access token flow
darkdh Apr 9, 2020
7ab37ec
Cleanup sync v1 code
darkdh Apr 10, 2020
f7a4340
add missing deps for access token fetcher
darkdh Apr 10, 2020
20d0f96
Sync UI cleanup
darkdh Apr 15, 2020
8af76da
Handle setup abort & invalid sync code
darkdh Apr 16, 2020
4c44734
brave://sync redirect
darkdh Apr 17, 2020
1141962
Add Reset button
darkdh Apr 17, 2020
041a84c
Encrypt/Decrypt seed using os_crypt
darkdh Apr 20, 2020
c391b52
Upgrade to 81.0.4044.113
darkdh Apr 21, 2020
06cd675
Prefs migration
darkdh Apr 22, 2020
d735ee4
Observe SyncSeed change to derive signing keys
darkdh Apr 28, 2020
5f8d6d1
Tests for redirecting brave://sync to brave://settings/braveSync
darkdh Apr 28, 2020
a79cea9
Add ProfileSyncServiceStartupTest
darkdh Apr 28, 2020
32883e9
Add ProfileSyncServiceTest and FakeAccessTokenFetcher
darkdh Apr 29, 2020
1fad0f0
Remove kSyncV2Enabled override because SyncAuthManager will provide c…
darkdh May 4, 2020
425e0dd
SyncAuthManager::ResetKeys should be triggered when sync seed gets clear
darkdh May 5, 2020
f1a2eac
Add SyncAuthManagerTest
darkdh May 5, 2020
cfd1389
Add AccessTokenFetcherImplTest
darkdh May 6, 2020
b1ec153
Strip off brave sync v1 meta info
darkdh May 7, 2020
077946a
1. Fix re-enter sync setup page getting weird state after reset
darkdh May 12, 2020
613d792
Move encryption enforcement from engine to setting UI
darkdh May 12, 2020
0178940
Prevent SyncV1 migration running in unittests
darkdh May 13, 2020
53cf8a1
Enable sync_integration_tests
darkdh May 19, 2020
36db396
More SingleClient Integration test and brave's SignOutPrimaryAccount
darkdh May 20, 2020
e10f98b
Set polling interval by ClientCommand from server
darkdh May 21, 2020
76861f3
Auth integration test and other single client integration tests
darkdh May 21, 2020
be351f3
Two clients integration tests
darkdh May 22, 2020
2456b28
Add a device info getter to the Sync UI.
iefremov Apr 27, 2020
81def18
lint fix and sync v1 ui cleanup
darkdh May 26, 2020
b836c1a
Simplify access token fetching process to be
darkdh May 29, 2020
41f839e
chromium 83.0.4103.61 upgrade
darkdh May 30, 2020
20e174b
chromium 83.0.4103.61 upgrade - tests fix
darkdh Jun 1, 2020
a45fec5
Remove patch of sync_auth_manager_unittest.cc
darkdh Jun 2, 2020
7a04d00
Set SessionStartupPref to default value to prevent DCHECK
darkdh Jun 2, 2020
fd5f3e3
Integrate brave signin flow with IdentityManager
darkdh Jun 3, 2020
3d756e1
Only fetch timestamp in OAuth2AccessTokenFetcherImpl when it is brave…
darkdh Jun 4, 2020
7f74ef5
Removed sync prefs from PrefServiceBridge
AlexeyBarabash Jun 2, 2020
ff84a62
brave sync points to prodcution when building OFFICIAL_BUILD, otherwi…
darkdh Jun 4, 2020
cfaa0f8
Introduce NetworkTimeHelper to fetch network time which is updated by
darkdh Jun 6, 2020
cdb5b59
Add BraveSyncAuthManagerTest
darkdh Jun 8, 2020
4a5f0ba
Preserve kSyncEnabled so we can know if user had sync v1 enabled via …
darkdh Jun 8, 2020
30238c1
`enable_brave_sync` now will be only available in nightly and develop…
darkdh Jun 8, 2020
79794b4
Settings WebUI: Sync button label varies with sync enabled status
petemill May 25, 2020
1c2f759
Settings WebUI: minimal, add comments to html
petemill May 25, 2020
5563c46
Settings: Introduce BraveSyncHandler WebUI MessageHandler and remove …
petemill May 26, 2020
d95f12f
Settings WebUI: Sync displays device list and updates immediately
petemill May 27, 2020
62fed7d
Settings WebUI: Sync refactor and remove dialog on dialog layering
petemill May 27, 2020
b7bb774
Settings WebUI: QR code generation [WIP]
petemill May 29, 2020
2ab083f
Settings WebUI: Style for Setup and Configure pages
petemill May 29, 2020
e765b97
Settings WebUI: Sync subpage title is same as button text
petemill Jun 3, 2020
dde5f18
Settings WebUI: Sync dialog styles, text and QR seed string generation
petemill Jun 3, 2020
cfd0197
Settings WebUI: Sync UI sets encryption on more reliably
petemill Jun 4, 2020
1876468
Settings WebUI: Cleanup html imports, variable names and error handling
petemill Jun 4, 2020
85f0e84
Settings WebUI: Introduce BraveSyncBroserProxy (js) and remove patch …
petemill Jun 5, 2020
678fac2
Settings WebUI: Sync words input gets focus when showing
petemill Jun 5, 2020
8e63a3e
Settings WebUI: Missing translations for remaining strings
petemill Jun 8, 2020
fe9d341
Settings WebUI: Sync table style adjustment for increased readability
petemill Jun 8, 2020
4275aef
Review feedback: patch cleanup
darkdh Jun 9, 2020
0a9b7e6
DeriveSigningKeysFromSeed now requires info so we can derive keys for…
darkdh Jun 9, 2020
cad01c1
Point dev BraveSyncServiceURL to remote access point and cleanup
darkdh Jun 9, 2020
247a37c
remove sync code logging and remove sync v1 ui test
darkdh Jun 9, 2020
4f4fa65
Use differnt feature flag for sync v2 and l10n string cleanup
darkdh Jun 10, 2020
df0a12d
Generalize BRAVE_SERVICES_KEY defines and brave_service_key declare_args
darkdh Jun 11, 2020
be4f1e4
Overrides set Authorization header in SyncStoppedReporter to comply w…
darkdh Jun 11, 2020
d51a3f3
Settings WebUI: Accessibility improvements for sync html
petemill Jun 11, 2020
51b4d3c
Pinning certificate for sync v2 endpoints
darkdh Jun 11, 2020
b5f41a3
SetNetworkTimeTracker might be called later than GetNetworkTime in so…
darkdh Jun 11, 2020
1467ef7
Sync: Show an infobar at startup for sync v1 users
petemill Jun 10, 2020
9ce2485
Merge pull request #5804 from brave/sync-v2-infobar
darkdh Jun 11, 2020
103c336
Update CODEOWNERS
darkdh Jun 11, 2020
a181816
Fix android build by including buildflags header for all platforms
petemill Jun 11, 2020
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
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@ components/brave_wallet/ @bbondy @ryanml

# Brave Referrals Service
components/brave_referrals/browser/brave_referrals_service* @simonhong

# Brave Sync
components/brave_sync/ @darkdh
components/sync/driver/ @darkdh
chromium_src/components/sync/ @darkdh
Original file line number Diff line number Diff line change
Expand Up @@ -84,26 +84,6 @@ public long getDataSaved(Profile profile) {
return BravePrefServiceBridgeJni.get().getDataSaved(profile);
}

public String getSyncDeviceId() {
return BravePrefServiceBridgeJni.get().getSyncDeviceId();
}

public void setSyncDeviceName(String deviceName) {
BravePrefServiceBridgeJni.get().setSyncDeviceName(deviceName);
}

public String getSyncDeviceName() {
return BravePrefServiceBridgeJni.get().getSyncDeviceName();
}

public void setSyncSeed(String seed) {
BravePrefServiceBridgeJni.get().setSyncSeed(seed);
}

public String getSyncSeed() {
return BravePrefServiceBridgeJni.get().getSyncSeed();
}

/**
* @param whether SafetyNet check failed.
*/
Expand Down Expand Up @@ -233,14 +213,6 @@ interface Natives {
void setOldAdsBlockedCount(Profile profile, long count);
void setOldHttpsUpgradesCount(Profile profile, long count);

String getSyncDeviceId();

void setSyncDeviceName(String deviceName);
String getSyncDeviceName();

void setSyncSeed(String seed);
String getSyncSeed();

void setSafetynetCheckFailed(boolean value);
boolean getSafetynetCheckFailed();

Expand Down
1 change: 0 additions & 1 deletion app/brave_command_ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#define IDC_NEW_TOR_CONNECTION_FOR_SITE 56002
#define IDC_NEW_OFFTHERECORD_WINDOW_TOR 56003
#define IDC_CONTENT_CONTEXT_OPENLINKTOR 56004
#define IDC_SHOW_BRAVE_SYNC 56005
#define IDC_SHOW_BRAVE_WALLET 56006
#define IDC_ADD_NEW_PROFILE 56007
#define IDC_OPEN_GUEST_PROFILE 56008
Expand Down
122 changes: 120 additions & 2 deletions app/brave_generated_resources.grd
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,126 @@ By installing this extension, you are agreeing to the Google Widevine Terms of U
<message name="IDS_SETTINGS_BRAVE_SYNC_TITLE" desc="The title for Brave Sync in settings">
Sync
</message>
<message name="IDS_SETTINGS_BRAVE_SYNC_LINK_LABEL" desc="Brave Sync link label">
Access Sync via
<message name="IDS_SETTINGS_BRAVE_SYNC_SETUP_ACTION_LABEL" desc="Brave Sync setup action label">
Start using sync
</message>
<message name="IDS_SETTINGS_BRAVE_SYNC_SETUP_TITLE" desc="Title for the Brave Sync settings setup section">
Sync Setup
</message>
<message name="IDS_SETTINGS_BRAVE_SYNC_SETUP_SUBTITLE" desc="Subtitle for the Brave Sync settings setup section">
To start, you will need Brave installed on all the devices you plan to sync. Then, securely link them together with a sync code.
</message>
<message name="IDS_SETTINGS_BRAVE_SYNC_MANAGE_ACTION_LABEL" desc="Brave Sync manage action label">
Manage your synced devices
</message>
<message name="IDS_SETTINGS_BRAVE_SYNC_MANAGER_TITLE" desc="Brave Sync manager title">
Sync Manager
</message>
<message name="IDS_SETTINGS_BRAVE_SYNC_SETTINGS_TITLE" desc="Brave Sync settings title">
Sync Settings
</message>
<message name="IDS_SETTINGS_BRAVE_SYNC_SETTINGS_SUBTITLE" desc="Brave Sync settings subtitle">
Manage what information you would like to sync between devices. These settings only affect this device.
</message>
<message name="IDS_SETTINGS_BRAVE_SYNC_DEVICE_LIST_TITLE" desc="Brave Sync device list title">
Device List
</message>
<message name="IDS_SETTINGS_BRAVE_SYNC_DEVICE_LIST_SUBTITLE" desc="Brave Sync device list subtitle">
The device list below includes all devices in your sync chain. Each device can be managed from any other device.
</message>
<message name="IDS_SETTINGS_BRAVE_SYNC_DEVICE_LIST_NAME_COLUMN" desc="Brave Sync device list table column title for device name">
Device Name
</message>
<message name="IDS_SETTINGS_BRAVE_SYNC_DEVICE_LIST_NAME_THIS_DEVICE" desc="Brave Sync device list label for device which is the device the user is currently using">
<ph name="DEVICE_NAME">$1<ex>my-computer-1</ex></ph> (This Device)
</message>
<message name="IDS_SETTINGS_BRAVE_SYNC_DEVICE_LIST_LAST_ACTIVE_COLUMN" desc="Brave Sync device list table column title for last active date">
Last Active
</message>
<message name="IDS_BRAVE_SYNC_SETUP_TITLE" desc="The Brave Sync title.">
Sync Setup
</message>
<message name="IDS_SETTINGS_BRAVE_SYNC_WORD_COUNT" desc="Text for Brave Sync word count message.">
Word count: <ph name="WORD_COUNT">$1<ex>24</ex></ph>
</message>
<message name="IDS_SETTINGS_BRAVE_SYNC_COPIED_TEXT" desc="The success state telling the user that a secret code was copied to the clipboard">
Copied!
</message>
<message name="IDS_BRAVE_SYNC_SETUP_DESCRIPTION" desc="The Sync phrase explaining what happens when you start a new sync chain. Appears when sync is disabled.">
To start, you will need Brave installed on all the devices you plan to sync. To chain them together, start a sync chain that you will use to securely link all of your devices together.
</message>
<message name="IDS_BRAVE_SYNC_START_NEW_CHAIN_BUTTON" desc="The Sync button that triggers a modal to start a new sync chian">
Start a new Sync Chain
</message>
<message name="IDS_BRAVE_SYNC_ENTER_CODE_BUTTON" desc="The Sync button that triggers a modal asking for the sync chain code passphrase">
I have a Sync Code
</message>
<message name="IDS_BRAVE_SYNC_VIEW_CODE_BUTTON" desc="The Sync button `view sync code` for viewing the passphrase and qr code needed to add a new device. triggers a modal with sync code">
View Sync Code
</message>
<message name="IDS_BRAVE_SYNC_CHOOSE_DEVICE_MOBILE_TITLE" desc="The Sync Phone/tablet word below the phone/tablet image. Appears in the `choose device type` modal">
Phone/Tablet
</message>
<message name="IDS_BRAVE_SYNC_CHOOSE_DEVICE_COMPUTER_TITLE" desc="The Sync Computer word below the computer image. Appears in the `choose device type` modal">
Computer
</message>
<message name="IDS_BRAVE_SYNC_SCAN_CODE_TITLE" desc="The Sync title for the `scan sync code` modal">
Sync Chain QR Code
</message>
<message name="IDS_BRAVE_SYNC_SCAN_CODE_DESCRIPTION_PARTIAL_1" desc="The Sync instructions for the `scan sync code` modal partial phrase (1)">
On your mobile device, navigate to Brave Sync in the Settings panel and click the button
</message>
<message name="IDS_BRAVE_SYNC_SCAN_CODE_DESCRIPTION_PARTIAL_2" desc="The Sync instructions for the `scan sync code` modal partial phrase (2)">
“Scan Sync Code”.
</message>
<message name="IDS_BRAVE_SYNC_SCAN_CODE_DESCRIPTION_PARTIAL_3" desc="The Sync instructions for the `scan sync code` modal partial phrase (3)">
Use your camera to scan the QR Code below.
</message>
<message name="IDS_BRAVE_SYNC_VIEW_CODE_TITLE" desc="The Sync title for the `view sync code` modal">
Sync Chain Code
</message>
<message name="IDS_BRAVE_SYNC_VIEW_CODE_DESCRIPTION_PARTIAL_1" desc="The Sync instructions for the `view sync code` modal partial phrase (1)">
On your target computer, navigate to Brave Sync in settings and click the button
</message>
<message name="IDS_BRAVE_SYNC_VIEW_CODE_DESCRIPTION_PARTIAL_2" desc="The Sync instructions for the `view sync code` modal partial phrase (2)">
“I have a Sync Code”.
</message>
<message name="IDS_BRAVE_SYNC_VIEW_CODE_DESCRIPTION_PARTIAL_3" desc="The Sync instructions for the `view sync code` modal partial phrase (3)">
Enter the sync chain code words shown below. Treat this code like a password. If someone gets ahold of it, they can read and modify your synced data.
</message>
<message name="IDS_BRAVE_SYNC_VIEW_CODE_QR_CODE_BUTTON" desc="The Sync description suggesting where to go with the current sync code">
View QR Code
</message>
<message name="IDS_BRAVE_SYNC_ENTER_CODE_TITLE" desc="The Sync modal title for `enter sync code`">
Enter a sync code
</message>
<message name="IDS_BRAVE_SYNC_ENTER_CODE_DESCRIPTION" desc="The Sync modal text for `enter sync code`">
Type your supplied sync chain code words into the form below.
</message>
<message name="IDS_BRAVE_SYNC_ADD_DEVICE_BUTTON" desc="The Sync button `add device` for adding a new device to the sync chain. triggers a modal with device options">
Add New Device
</message>
<message name="IDS_BRAVE_SYNC_CHOOSE_DEVICE_TITLE" desc="The Sync title to sync a new device. Appears in the `choose device type` modal">
Choose Device Type
</message>
<message name="IDS_BRAVE_SYNC_CHOOSE_DEVICE_DESCRIPTION" desc="The Sync title to select which device to sync. Appears in the `choose device type` modal">
Which type of device would you like to sync to?
</message>
<message name="IDS_BRAVE_SYNC_INVALID_SYNC_CODE_TITLE" desc="Error message in dialog for when sync words are invalid (title)">
Invalid sync code, please check and try again.
</message>
<message name="IDS_BRAVE_SYNC_RESET_BUTTON" desc="The Sync button that opens a modal to leave the current sync chain">
Leave Sync Chain
</message>
<message name="IDS_BRAVE_SYNC_RESET_CONFIRMATION" desc="Confirmation message prompt to make sure the user is ok with leaving sync">
If you reset Sync, you will have to re-enter a sync code from another device in order to sync with it. Are you sure you want to proceed?
</message>
<!-- Sync Infobar -->
<message name="IDS_BRAVE_SYNC_V2_MIGRATE_INFOBAR_MESSAGE" desc="Message text shown to users who used a previous version of Brave Sync and need to perform setup again for the new version.">
Brave Sync has been upgraded and requires setup
</message>
<message name="IDS_BRAVE_SYNC_V2_MIGRATE_INFOBAR_COMMAND" desc="Command text shown to users who used a previous version of Brave Sync and need to perform setup again for the new version.">
Begin Setup
</message>
<!-- Help Tips Page -->
<message name="IDS_SETTINGS_HELP_TIPS" desc="Title for an item in the 'Help Tips' section of Brave Settings">
Expand Down
16 changes: 15 additions & 1 deletion app/brave_main_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@
#include "components/dom_distiller/core/dom_distiller_switches.h"
#endif

namespace {
// staging "https://sync-v2.bravesoftware.com/v2" can be overriden by
// switches::kSyncServiceURL manually
#if defined(OFFICIAL_BUILD)
// production
const char kBraveSyncServiceURL[] = "https://sync-v2.brave.com/v2";
#else
// For local server development "http://localhost:8295/v2 can also be overriden
// by switches::kSyncServiceURL
// dev
const char kBraveSyncServiceURL[] = "https://sync-v2.brave.software/v2";
#endif
} // namespace

#if !defined(CHROME_MULTIPLE_DLL_BROWSER)
base::LazyInstance<BraveContentRendererClient>::DestructorAtExit
g_brave_content_renderer_client = LAZY_INSTANCE_INITIALIZER;
Expand Down Expand Up @@ -158,7 +172,7 @@ bool BraveMainDelegate::BasicStartupComplete(int* exit_code) {

// Brave's sync protocol does not use the sync service url
command_line.AppendSwitchASCII(switches::kSyncServiceURL,
"https://no-thanks.invalid");
kBraveSyncServiceURL);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should check to make sure the sync url is empty before setting it, otherwise you can't override

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

void BraveCommandLineHelper::AppendSwitch(const char* switch_key) {
  if (!command_line_.HasSwitch(switch_key))
    command_line_.AppendSwitch(switch_key);
}

our BraveCommandLineHelper already checks it


// Enabled features.
std::unordered_set<const char*> enabled_features = {
Expand Down
11 changes: 0 additions & 11 deletions brave_paks.gni
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import("//brave/components/brave_ads/browser/buildflags/buildflags.gni")
import("//brave/components/brave_rewards/browser/buildflags/buildflags.gni")
import("//brave/components/brave_sync/buildflags/buildflags.gni")
import("//brave/components/brave_webtorrent/browser/buildflags/buildflags.gni")
import("//brave/components/speedreader/buildflags.gni")
import("//build/config/locales.gni")
Expand Down Expand Up @@ -105,16 +104,6 @@ template("brave_extra_paks") {
]
}

if (enable_brave_sync) {
sources += [
"$root_gen_dir/brave/components/brave_sync/brave_sync_resources.pak",
]

deps += [
"//brave/components/brave_sync:resources",
]
}

if (enable_brave_webtorrent) {
sources += [
"$root_gen_dir/brave/components/brave_webtorrent/brave_webtorrent_resources.pak",
Expand Down
3 changes: 1 addition & 2 deletions browser/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ source_set("browser_process") {
]

sources = [
"autocomplete/brave_autocomplete_provider_client.cc",
"autocomplete/brave_autocomplete_provider_client.h",
"autocomplete/brave_autocomplete_scheme_classifier.cc",
"autocomplete/brave_autocomplete_scheme_classifier.h",
"brave_shields/ad_block_pref_service_factory.cc",
Expand Down Expand Up @@ -134,6 +132,7 @@ source_set("browser_process") {
"//brave/components/brave_referrals/browser",
"//brave/components/brave_shields/browser",
"//brave/components/brave_shields/common",
"//brave/components/brave_sync",
"//brave/components/brave_wallet/browser/buildflags",
"//brave/components/brave_wayback_machine:buildflags",
"//brave/components/brave_webtorrent/browser/buildflags",
Expand Down
36 changes: 0 additions & 36 deletions browser/android/preferences/brave_pref_service_bridge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -181,42 +181,6 @@ void JNI_BravePrefServiceBridge_SetOldHttpsUpgradesCount(JNIEnv* env,
count + profile->GetPrefs()->GetUint64(kHttpsUpgrades));
}

ScopedJavaLocalRef<jstring> JNI_BravePrefServiceBridge_GetSyncDeviceId(
JNIEnv* env) {
return ConvertUTF8ToJavaString(env,
GetOriginalProfile()->GetPrefs()->GetString(
brave_sync::prefs::kSyncDeviceId));
}

void JNI_BravePrefServiceBridge_SetSyncDeviceName(
JNIEnv* env,
const JavaParamRef<jstring>& deviceName) {
return GetOriginalProfile()->GetPrefs()->SetString(
brave_sync::prefs::kSyncDeviceName,
ConvertJavaStringToUTF8(env, deviceName));
}

ScopedJavaLocalRef<jstring> JNI_BravePrefServiceBridge_GetSyncDeviceName(
JNIEnv* env) {
return ConvertUTF8ToJavaString(env,
GetOriginalProfile()->GetPrefs()->GetString(
brave_sync::prefs::kSyncDeviceName));
}

void JNI_BravePrefServiceBridge_SetSyncSeed(
JNIEnv* env,
const JavaParamRef<jstring>& seed) {
return GetOriginalProfile()->GetPrefs()->SetString(
brave_sync::prefs::kSyncSeed, ConvertJavaStringToUTF8(env, seed));
}

ScopedJavaLocalRef<jstring> JNI_BravePrefServiceBridge_GetSyncSeed(
JNIEnv* env) {
return ConvertUTF8ToJavaString(env,
GetOriginalProfile()->GetPrefs()->GetString(
brave_sync::prefs::kSyncSeed));
}

void JNI_BravePrefServiceBridge_SetSafetynetCheckFailed(
JNIEnv* env,
jboolean value) {
Expand Down
29 changes: 0 additions & 29 deletions browser/autocomplete/brave_autocomplete_provider_client.cc

This file was deleted.

26 changes: 0 additions & 26 deletions browser/autocomplete/brave_autocomplete_provider_client.h

This file was deleted.

Loading