Commit Graph
34 Commits
Author SHA1 Message Date
bridiver fb3c0f5561 buildtools/checkdeps/checkdeps.py brave --extra-repos=brave runs succesfully 2021-02-06 13:34:00 -07:00
Mario Sanchez Prada 462f62a19e Update calls to base::DeleteFile(path, recursive) to new APIs
Calls to DeleteFile(path, true) become DeleteFileRecursively(path),
and calls to DeleteFile(path, falsee) become DeleteFile(path).

Then, DeleteFileRecursively became DeletePathRecursively.

Chromium changes:

https://chromium.googlesource.com/chromium/src/+/9382efe14df0303a66a78e6dee4ee8f91436d994

commit 9382efe14df0303a66a78e6dee4ee8f91436d994
Author: Lei Zhang <thestig@chromium.org>
Date:   Sat Jul 25 20:52:14 2020 +0000

    Remove deprecated 2-param base::DeleteFile().

    Convert the few remaining callers within base/.

    Bug: 1009837

https://chromium.googlesource.com/chromium/src/+/746ce47465d3549e5345c5986bf4b92e80d6f0bb

commit 746ce47465d3549e5345c5986bf4b92e80d6f0bb
Author: Lei Zhang <thestig@chromium.org>
Date:   Wed Jul 1 04:39:45 2020 +0000

    Rename base::DeleteFileRecursively() to DeletePathRecursively().

    Take the name suggestion from several reviewers while converting
    base::DeleteFile(path, true) calls.

    Tbr: blundell@chromium.org,jamiewalch@chromium.org,jkarlin@chromium.org,kinuko@chromium.org,reillyg@chromium.org,sdefresne@chromium.org,xdai@chromium.org
    Bug: 1009837
2020-09-11 14:45:31 -04:00
Simon Hong bc484ee6f1 Add missing buildflags deps to common/importer 2020-06-23 14:52:28 -07:00
Simon Hong c0ad2a0d79 Use separated service for brave's importing
ChromeImporter runs in a separated service from upstream import service.
This new import service will use chrome::mojom::ProfileImportObserver and
brave::mojom::ProfileImportObserver and they are passed via
brave::mojom::ProfileImport.

brave::mojom::ProfileImportObserver and BraveImportBridge only define additional
interface.
2020-06-19 18:45:29 +09:00
Simon Hong 7fbce9e9d9 Import payments info from chrome 2020-06-19 17:18:21 +09:00
Simon Hong 0dc9d8c84a Delete muon import feature 2020-03-26 10:38:07 +09:00
Simon Hong 9348e0389f Address review comments 2020-03-25 09:21:01 +09:00
Simon Hong 1507334151 Enable extensions importing from Chrome
BraveExternalProcessImporterHost will fetch available extensions list
and ask to install them.
Other importing options are done via other utility process but
importing extension should be done in browser process.
So, BraveExternalProcessImporterHost manages extension installs.

BraveExternalProcessImporterHost will fetch available extensions list
and ask to install them.
Other importing options are done via other utility process but
importing extension should be done in browser process.
So, BraveExternalProcessImporterHost manages extension installs.

NOTE: this commits has many cleanup changes around importing area
that uses deprecated patching style.

fix https://github.com/brave/brave-browser/issues/7974
2020-03-25 09:21:01 +09:00
Ivan Efremov 0b1a2dacc2 Issue 7044: Do not import cookies from Chrome and Firefox.
Note: we do not import cookies from Safari, so nothing to disable.
2019-12-10 21:55:07 -07:00
NejcZdovc 0dc36aafcb Converts verified to status for new API 2019-08-29 20:24:22 +02:00
Max Karolinskiy 8114d82b30 Revert "Merge pull request #2088 from brave/revert-c74-with-deps"
Reland C74 on master.

This reverts commit f6cfa13c73, reversing
changes made to 6143676339.
2019-04-01 17:46:01 -04:00
Brian Clifton 66e6c951d4 Revert Chromium 74
(originally implemented with https://github.com/brave/brave-core/pull/2013)

Fixes https://github.com/brave/brave-browser/issues/3898
2019-03-26 18:35:47 -07:00
Max Karolinskiy 39945c8e5e Lint fixes. 2019-03-19 16:10:05 -04:00
Max Karolinskiy ff26f6b368 Unit tests fix: Removed unnecessary semicolons that cause compilation errors.
Debug/DCHECK compilation now uses [-Werror,-Wextra-semi] which causes
semicolons after function definitions or namespaces to be treated as
errors. For example, void foo() {}; would produce an error due to the
trailing semicolon.

Chromium change:

    commit a02a8f4b72fe5abad3c123a9c52c6ef78940de45
    Author: Nico Weber <thakis@chromium.org>
    Date:   Sat Feb 23 04:13:21 2019 +0000

        Reland "Enable -Wextra-semi in non-cros non-chromecast non-fuzzer linux builds that have DCHECKs enabled."

        This is a reland of 5b911be859f216fe70bad5c41cc91a8684d773f6

        Bug: 926235, 935033
2019-03-19 16:10:01 -04:00
Max Karolinskiy 3de67e5e53 Fixed calls to base::JSONReader::Read and
base::JSONReader::ReadAndReturnError.

base::JSONReader changed signatue of Read to return Optional<Value>
instead of std::unique_ptr<Value>. ReadAndReturnError has been
deprecated and replaced with ReadAndReturnValueWithError that
returns a struct with error instead of having multiple out parameters.

Chromium chages:

commit 025edc25d8c8649d5a8dfd062e952855b3dfa13e
Author: Lei Zhang <thestig@chromium.org>
Date:   Sat Feb 16 05:02:25 2019 +0000

    Change base::JSONReader::Read()/ReadAndReturnError() to return Optional.
    BUG=925165

commit 015397daa81409c43afbcd11ac41978cd7175cd0
Author: Lei Zhang <thestig@chromium.org>
Date:   Wed Feb 20 04:26:59 2019 +0000

    Change base::JSONReader::ReadAndReturnError() to not use out params.

    Instead of returning Optional<Value> and putting the error status in 4
    out parameters, return struct ValueWithError which contains the value
    and the error status.
2019-03-19 16:09:54 -04:00
Brian Clifton d2e8388edf Importer for Muon now imports search engine preferences
- default search engine
- use DDG/Qwant for private tabs
- use DDG/Qwant for Tor tabs

Fixes https://github.com/brave/brave-browser/issues/2415

NOTE: if private tabs in tor is not set, TorWindowSearchEngineProviderService::GetInitialSearchEngineProvider will properly set the default
2018-12-12 22:10:46 -07:00
Garrett Robinson 544c4575ce Import open windows and tabs from legacy Brave 2018-11-29 14:36:02 -08:00
Brian Clifton 9a5229e430 Read referral related values from session-store-1 during import (if they are available) and set corresponding values in brave-core.
Fixes brave/brave-browser#1884
Fixes brave/brave-browser#1294
2018-11-28 13:04:57 -07:00
Brian Clifton 615be78dfe Read/store all required fields to populate publisher_info 2018-11-27 22:32:34 -07:00
Brian Clifton 1c9108bb5d Addressed review feedback (part 2):
- removed un-used `clobber_wallet` param
- added validation for previously unvalidated fields
- pulled common cancel logic into common method (ProfileWriter)
- any parsing attempts are considered fatal; returns immediately
- properly handle reference to this when calling PostTaskAndReplyWithResult
- add dcheck for bridge_ptr_
- put `importer/brave_ledger.*` under !is_android block
- update CHECK to be DCHECK for ProfileWriter destructor
- use regular profile (ex: don't call GetOriginalProfile) in ProfileWriter
- remove signature from PostTaskAndReplyWithResult call
2018-11-27 22:32:34 -07:00
Brian Clifton f252eddeba Finalize logic for pinned contributions
- Implements pinned logic captured in https://github.com/brave/brave-browser/issues/1910
    - Tip amount in BAT is calculated based on % of monthly contribution. If < 1 BAT, pin is ignored.
    - Any amounts spent towards tipping are deducted from monthly budget
    - If monthly budget is below lowest value (15 BAT), auto-contribute is disabled
- Log error (and result code) when RestoreWallet is not successful
- Set contribution amount (again) after RestoreWallet, since we found this is adjusted
- Created new `kBravePaymentsPinnedItemCount` profile preference (present after import) for use with https://github.com/brave/brave-browser/issues/1910
- Remove unused wallet_seed code
2018-11-27 22:32:33 -07:00
Brian Clifton aa0f930e0b Added necessary IPC definitions so that BraveLedger object retains its values from BraveImporter to BraveProfileWriter 2018-11-27 22:32:33 -07:00
Brian Clifton e2da2fe654 Read important payment related preferences from session-store-1 2018-11-27 22:32:33 -07:00
Garrett Robinson dbe2becd8a Avoid overwriting any extant Brave Rewards wallet 2018-11-27 22:32:33 -07:00
Garrett Robinson 49314dd9dd Parse wallet seed
- IPC wallet_seed from BraveImporter to BraveProfileWriter
- Refactor wallet seed parsing into dedicated function
2018-11-27 22:32:33 -07:00
Garrett Robinson dd932eb76c Plumbing for BraveImporter::ImportLedger
Builds; unfortunately, I cannot test the stubs because my debug build crashes
with a fatal assertion when I try to open chrome://settings/importData.
2018-11-27 22:32:33 -07:00
Garrett Robinson a6a5c1993a Import browser-laptop history from historySites in session-store-1 2018-10-10 13:51:37 -07:00
Garrett Robinson fdc4cb1679 Unit test for BraveImporter::ImportStats 2018-08-09 10:56:58 -07:00
Garrett Robinson 87150060eb Import new tab stats from Brave browser-laptop 2018-08-09 10:56:58 -07:00
Brian R. Bondy 3d5962d4cf Brave-core changes needed for building C68
- Update for moving zygote code to service_manager
- PathService -> base::PathService
- Gen new Elevator CLSIDs
- Fixes for tests
2018-07-20 10:38:28 -04:00
Garrett Robinson f2cac13bcf Import history, bookmarks, cookies, and passwords from Brave 2018-07-05 16:20:30 -07:00
Garrett Robinson 4d2631c304 Import cookies from Chrome 2018-04-26 12:46:40 -07:00
Garrett Robinson 74fa96cba1 Import passwords from Chrome 2018-04-02 17:14:00 -07:00
Garrett Robinson 5f00709f85 Import from Chrome (#49)
Import bookmark & history from chrome/chrome canary/chromium
2018-03-15 13:35:03 -07:00