Commit Graph
117 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
mkarolin c37e44d128 GetBlacklistLogins -> GetBlocklistLogins
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/c01e115c2633e007d23be7ecc69c092b1cc7a933

commit c01e115c2633e007d23be7ecc69c092b1cc7a933
Author: Jan Wilken Dörrie <jdoerrie@chromium.org>
Date:   Thu Dec 10 15:51:48 2020 +0000

    [Passwords] Replace Blacklist with Blocklist in PasswordStore and others

    This change replaces usages of Blacklist with Blocklist in the
    PasswordStore, LoginDatabase and fixes comments that were missed in
    other places. Note that this change does not yet rename the actual SQL
    columns in the Login Data database.

    Bug: 1147799
2021-02-04 23:52:15 -05:00
mkarolin 03e9610f52 autofill::PasswordForm was removed from importer.
Chromium changes:

https://chromium.googlesource.com/chromium/src.git/+/3bbb69a821f89abf22beab20b1eabc015a71d8ab

commit 3bbb69a821f89abf22beab20b1eabc015a71d8ab
Author: Jan Wilken Dörrie <jdoerrie@chromium.org>
Date:   Tue Nov 3 06:59:57 2020 +0000

    [Passwords] Remove autofill::PasswordForm from //chrome/*/importer

    This change replaces most usage of autofill::PasswordForm in the
    importer code and uses a new importer::ImportedPasswordForm struct
    instead.

    This is necessary, because PasswordForm is being moved to the //browser
    component, and thus is no longer accessible from other components like
    //common or //utility.

    Bug: 1067347

https://chromium.googlesource.com/chromium/src.git/+/9c84018d43d95b8c7ca850653af9452b4edc895b

commit 9c84018d43d95b8c7ca850653af9452b4edc895b
Author: Jan Wilken Dörrie <jdoerrie@chromium.org>
Date:   Tue Nov 3 09:57:10 2020 +0000

    [Passwords] Move password_form.h to //components/password_manager

    This change moves password_form.h and password_form.cc from
    /autofill/core/common to /password_manager/core/browser and fixes
    remaining compilation issues.

    Bug: 1067347
2020-12-08 15:25:51 -05:00
Simon Hong 9266cdf23d Revert "Revert "Revert "Import History from Safari"""
This reverts commit 02814998e1110acf2c4c59b4b47eb6436c15a784.

We will not support history import from safari as chrome doesn't support it.
2020-10-28 14:04:01 -04:00
Simon Hong 2981a53e0f Revert "Fix safari history import"
This reverts commit f42f9b0bed2185d175a53a71cc451f58eed4b55f.

We will not support history import from safary as chrome doesn't support it.
2020-10-28 14:04:01 -04:00
Simon Hong b3036e24a0 Fix safari history import
Makes all supported import service available always.
2020-10-28 14:04:00 -04:00
Anthony Tseng 08e8604cd4 Move buildflag 2020-10-27 16:27:22 -07:00
Brian R. Bondy c3a8f2947c Collapse components/ipfs/browser and components/ipfs/common into components/ipfs 2020-10-12 16:32:05 -04:00
Jocelyn Liu 5c3997fadd Fix bat/ads/ads.h and bat/ledger/ledger.h file not found
Without this, will get build error like:
In file included from
/brave/src/brave/chromium_src/chrome/utility/services.cc:32:
../../brave/components/services/bat_ads/bat_ads_service_impl.h:13:10:
fatal error: 'bat/ads/ads.h' file not found
2020-09-11 17:00:51 -07:00
Jocelyn Liu 6d2867a9de Migrate BatAds and BatLedger services off service manager 2020-09-11 17:00:49 -07:00
Jocelyn Liu f40baf0a7b Migrate TorLauncher off service manager 2020-09-11 16:57:56 -07:00
Max Karolinskiy 04a3398010 [Unit tests] Updated to inclusive terminology.
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/fda91a16b26c0ca74757c335e6128c5a04fa173b

commit fda91a16b26c0ca74757c335e6128c5a04fa173b
Author: Avi Drissman <avi@chromium.org>
Date:   Fri Jun 26 21:38:47 2020 +0000

    Use inclusive terminology in components/autofill

    Bug: 1099072
2020-09-11 14:45:32 -04:00
Max Karolinskiy 05da95bf1a OS_MACOSX has been deprecated.
Switched to using OS_MAC or OS_APPLE.

Chromium change:

https://bugs.chromium.org/p/chromium/issues/detail?id=1105907
2020-09-11 14:45:32 -04: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
Mario Sanchez Prada dfa43a645d Convert to new mojo types for uses of the old mojom::ServiceRequest
This means renaming uses of ServiceBinding to ServiceReceiver, as
well as removing any use of the old InterfaceRequest<T> type (e.g.
used by the ServiceRequest alias) and use PendinReceiver<T> instead.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/bb551f12072ebf7a9af6df26a51d125f90078453

commit bb551f12072ebf7a9af6df26a51d125f90078453
Author: Gyuyoung Kim <gyuyoung@igalia.com>
Date:   Thu Jul 2 00:12:00 2020 +0000

    Convert mojom::ServiceRequest to PendingReceiver<mojom::Service>

    There are many uses of mojom::ServiceRequest. This CL migrates
    them to PendingReceiver<mojom::Service>.

    Besides that, ServiceBinding is renamed to ServiceReceiver and
    the variable name is also changed from |binding_| to |receiver_|
    or |service_binding_| to |service_receiver_|.

    Bug: 955171
2020-09-11 14:45:30 -04:00
Jocelyn Liu 808e73054c Implement IPFS service in utility process 2020-09-02 11:10:39 -04:00
Pranjal Jumde 9c2501854e Fix 9365: Add gn check to npm scripts 2020-07-20 09:58:02 -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 c9050d2f8e Import History from Safari 2020-05-27 15:35:29 +09:00
Simon Hong 38b53f38a4 Handle temp file copy failure 2020-05-12 11:57:59 +09:00
Simon Hong c26d326491 Just warning if browser detect chrome is running while importing
With this warning dialog, user will close chrome windows.
After that user clicks continue button, browser will not check lock again aind
will try to import chrome's settings.
Even if chrome is still running, importing will be done because
importing is done with temporarily copied db files.
2020-05-12 11:35:47 +09:00
Simon Hong 80bfef0010 Fix chrome password importing is failed on Win
To read chrome's login data, chrome's encryption key is used.
To do this, fetching key from local prefs and set it in importing
service process.
2020-04-22 09:15:22 +09:00
Simon Hong 0dc9d8c84a Delete muon import feature 2020-03-26 10:38:07 +09:00
Simon Hong 345327f1ee Do more cleanup to avoid patch around importer module. 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
mkarolin 34a4293a8a BindInt(64) require exact type.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/f070ffde7ce159aa8687e850b95c2a54f8caf5d3

commit f070ffde7ce159aa8687e850b95c2a54f8caf5d3
Author: Joshua Bell <jsbell@chromium.org>
Date:   Tue Dec 10 19:44:51 2019 +0000

    SQL: Disallow implicit integer downconversion on BindInt

    Calling sql::Statement::BindInt() with an int64_t argument silently
    downconverted, potentially saving incorrect data to a database.
    sql::Statement::BindInt64(int64_t) should be used instead.

    Introduce an uncallable sql::Statement::BindInt(int64_t) overload to
    fail the compile. This also catches calling BindInt with uint32_t. Fix
    up various callers that were silently downconverting.

    Bug: 908690
2020-03-19 16:51:33 -04:00
Brian Clifton 875dd4667c lint fixes 2019-12-12 23:09:59 -07:00
Ivan Efremov 36ccfa29bc Issue 7044: Erase unneeded test. 2019-12-12 22:06:27 +07: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
mkarolin 3ec35dbaf3 Lint fixes. 2019-11-27 15:57:50 -05:00
mkarolin d53186403c ExternalProcessImportBridge now uses mojom observer.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/aa59e9ec484ceff647a58e58fa16e1ee784d157f

commit aa59e9ec484ceff647a58e58fa16e1ee784d157f
Author: Henrique Ferreiro <hferreiro@igalia.com>
Date:   Tue Sep 24 08:38:14 2019 +0000

    Migrate profile_import.mojom to the new Mojo types

    Convert the implementation and all users of the
    chrome::mojom::ProfileImportObserver interface.

    Bug: 955171
2019-11-27 15:57:48 -05:00
Simon Hong bc513dbfd3 Fix cookies are not imported from Chrome
Since the V11 cookies db schema, firstpartyonly column is renamed to samesite.
Also, BraveImporter and ChromeImporter should have different cookies query
string because muon uses old schema.
2019-10-29 17:52:01 +09:00
mkarolin a558f1e877 LoginDatabase account vs profile scoped.
Chromium changes:

https://chromium.googlesource.com/chromium/src/+/0b653a39fe832ec8366948cc343f2b5a97ab57fa

commit 0b653a39fe832ec8366948cc343f2b5a97ab57fa
Author: Marc Treib <treib@chromium.org>
Date:   Tue Sep 3 11:00:37 2019 +0000

    Clear the account-scoped PasswordStore on signout

    This adds an "is_account_store" flag to LoginDatabase, which specifies
    whether this DB stores profile-scoped or Gaia-account-scoped data.
    Sync uses this flag to clear the account-scoped data on signout.
    In the future, the flag will also be used by the DB itself to "tag"
    credentials it returns as coming from the account or from the profile.

    Bug: 998455

https://chromium.googlesource.com/chromium/src/+/00380bfbde67971670a4e4afcaa513622905d8a5

commit 00380bfbde67971670a4e4afcaa513622905d8a5
Author: Marc Treib <treib@chromium.org>
Date:   Wed Sep 4 08:04:37 2019 +0000

    LoginDatabase: Use a strong alias for is_account_store param

    With this change, callers have to write
    new LoginDatabase(path, IsAccountStore(true))
    instead of
    new LoginDatabase(path, /*is_account_store=*/true)
    which is clearer (no way to forget the comment), especially if any
    other (boolean) parameters are added at any later point.

    Bug: 998455
2019-10-09 21:50:28 -04:00
Max Karolinskiy 7d38f211bc Lint fixes. 2019-09-06 13:25:38 -04:00
Max Karolinskiy 10371d5a93 Fixes password import from Chrome on Linux.
Passwords are no longer stored using native backend. Switch to importing
from LoginDatabase like on other platforms.

Chromium change:

commit 6811de35a39128fb354f238bce350f9a4a643e9d
Author: Mohamed Amir Yosef <mamir@chromium.org>
Date:   Thu Jul 25 22:26:26 2019 +0000

    [PasswordManager] Stop Using Native Backends on Linux systems

    Recent migrations moved all users who have been using the keying to the
    LoginDatabase. This CL forces all users to using LoginDatabase
    instead of native backends on Linux.

    TBR=pcc@chromium.org

    Change-Id: Ibac11e68d8f354ecf7f3c9828d95777ea5b3df60
    Bug: 950269, 950267
2019-09-05 21:22:22 -04:00
NejcZdovc 0dc36aafcb Converts verified to status for new API 2019-08-29 20:24:22 +02:00
Max Karolinskiy d4bbcf226e Fixes unused function error on Android. 2019-07-10 16:38:33 -04:00
bridiver f5ed1e0af8 move services back to the utility process and make Tor consistent with the with other services 2019-07-10 16:38:31 -04:00
Max Karolinskiy 4c05c32541 Removed packaged services from BraveContentBrowserClient.
- Packaged services have been removed and are now called builtin services.
Our services are no longer added via an overlay, but instead in the
GetExtraServiceManifests callback.

- The builtin services are marked as out-of-process, added the same
designation to our services in their manifests via the
ExecutionMode::kOutOfProcessBuiltin option.

-Removed service registration as it's no longer used.

Chromium changes:

commit 06fd283a53441cff85ce452e0de258a2a96d94aa
Author: Ken Rockot <rockot@google.com>
Date:   Fri May 24 17:24:44 2019 +0000

    Remove content_packaged_services

    This removes content_packaged_services entirely, switching instead to a
    direct delegate interface on Service Manager, allowing the Content
    layer to directly field service process launching requests.

    Follow-up CLs will further simplify in- and out-of-process service
    configuration, and this is ultimately a step towards migrating process
    launch out of Content and into Service Manager and removing other things
    like content::ServiceManagerConnection.

    Bug: 781334,895615

commit fa5d57115b51a77be5d8e5757a3758e0db51cf05
Author: Ken Rockot <rockot@google.com>
Date:   Wed May 29 20:57:14 2019 +0000

    Simplify out-of-process service registration

    This eliminates the need to register out-of-process services at the
    Content layer, separate from their manifests. Display names for service
    processes are taken directly from the manifest now, including support
    for string resource IDs resolved to localized strings by the Service
    Manager at runtime.

    Bug: 915806, 895615
2019-07-10 16:38:31 -04:00
bridiver 15e07cd6b4 fix gn for ios builds
fix https://github.com/brave/brave-browser/issues/3080
2019-06-02 07:44:49 +01:00
bridiver e3917f6315 add support for building android-apk
required for https://github.com/brave/brave-browser/issues/2117
2019-05-08 12:35:11 -07: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 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
Max Karolinskiy 234b40a7c8 Convert JSON service manifests and overlays to C++.
Chromium's Service Manager no longer supports JSON manifests.
All JSON manifests and overlays need to be converted to C++.
See: https://bugs.chromium.org/p/chromium/issues/detail?id=895616

This change affects the following services:
- bat_ads
- bat_ledger
- tor_launcher
2019-03-19 16:09:54 -04:00
NejcZdovc c802580423 Fixes .h files import
Resolves https://github.com/brave/brave-browser/issues/3413
2019-03-05 22:50:34 +01:00
Brian R. Bondy 1c7c198857 Lint fix 2019-02-12 00:41:31 -05:00
Brian R. Bondy c086cbbd22 Remove arraysize for base::size
commit 72b4cbab5a982e00ad473494d1c4e953046b607b
Author: Avi Drissman <avi@chromium.org>
Date:   Thu Jan 10 21:54:23 2019 +0000

    Remove arraysize.
2019-02-11 21:28:40 -05:00