Commit Graph
22806 Commits
Author SHA1 Message Date
Max Karolinskiy dad57bfdfd Removed brave_unit_tests dependency on brave_browser_tests 2021-07-01 09:32:39 -04:00
Max Karolinskiy 7c0ee01dcd Converted more components to static_library 2021-07-01 09:32:38 -04:00
mkarolin 5ba16856f7 Revert "Converted some unit tests source_set to static_library."
This reverts commit bb3b1f5ea0.
2021-07-01 09:32:38 -04:00
Sergey 66babf85fa Merge pull request #9287 from brave/key-import-crash
Fix key import crash
2021-07-01 15:38:43 +03:00
Terry Mancey 3f36d65803 Merge pull request #9286 from brave/issues/16678
Fixes estimated Pending Rewards value decreased unexpectedly
2021-07-01 07:24:50 -05:00
brave-builds f8b919c22c 1.28.44 2021-07-01 12:00:56 +00:00
Sergey P 05355bd217 Fix key import crash 2021-07-01 10:43:17 +03:00
Sergey 2136834312 Merge pull request #9171 from brave/rotate-key
Added default key rotation
2021-07-01 09:44:40 +03:00
Max a59d5c6361 Merge pull request #9290 from brave/maxk-cr92-followup-fix-mac-signing
[cr92 followup] Fixes MacOS signing.
2021-07-01 01:50:03 -04:00
Max 9f51de8e69 Merge pull request #9294 from brave/maxk-fix-windows-signing
[cr92 followup] Fixes signing on Windows.
2021-07-01 01:47:14 -04:00
Max d826e00357 Merge pull request #9292 from brave/maxk-revert-tweak_info_plist-change
[cr92 followup] Reverts plistlib changes in tweak_info_plist.py.
2021-06-30 23:01:55 -04:00
Kyle Hickinson 321b815474 Merge pull request #9250 from brave/ios-move
Move iOS code from brave/vendor to brave/ios
2021-06-30 21:05:52 -04:00
mkarolin ec520f09ea [cr92 followup] Fixes MacOS signing. 2021-06-30 20:47:28 -04:00
Max 6020c89344 Merge pull request #9288 from brave/maxk-cr92-followup-fix-settings
[cr92 followup] Fixes blank settings page.
2021-06-30 20:42:38 -04:00
brave-builds 5f47aeaf20 1.28.43 2021-07-01 00:01:41 +00:00
mkarolin 05310298d2 [cr92 followup] Fixes signing on Windows.
Fixes brave/brave-browser#16718
2021-06-30 19:56:22 -04:00
Kyle Hickinson 52ec010182 Move iOS code from brave/vendor to brave/ios 2021-06-30 16:52:00 -04:00
Terry Mancey 326cb98292 Fixes estimated Pending Rewards value decreased unexpectedly 2021-06-30 15:47:04 -05:00
mkarolin 8ed14bacaf [cr92 followup] Reverts plistlib changes in tweak_info_plist.py.
Fixes brave/brave-browser#16716
2021-06-30 15:03:06 -04:00
brave-builds 0b9ef3d581 1.28.42 2021-06-30 18:01:30 +00:00
Mark Pilgrim dfb463d013 Merge pull request #9285 from brave/mpilgrim_domain_block_permission_bleed
Clear temporary IsProceeding flag after proceeding from a blocked domain
2021-06-30 13:50:28 -04:00
Terry Mancey c7b69ec90a Merge pull request #9263 from brave/issues/16648
Implement Brave Ads API to purge unseen served ads
2021-06-30 12:11:46 -05:00
mkarolin 7832284465 [cr92 followup] Fixes blank settings page.
The page is blank because the /safetyCheck menu item cannot be found.
This happens because the menu item is no longer a direct child of the
menu, but instead is nested in a template.

Added code to search templates for menu items (perhpas there's a more
efficient way?).

Fixes brave/brave-browser#16708

Chromium change:

https://chromium.googlesource.com/chromium/src.git/+/49cea54a

commit 49cea54a094586e441513055fe0febedba4f377d
Author: dpapad <dpapad@chromium.org>
Date:   Fri May 14 08:53:26 2021 +0000

    Settings: Combine safetyCheck and privacy sections in re-design.

     - Hide the "Safety check" menu entry
     - Add a new |nest-under-section| attribute on <settings-section> and
       leverage it in main_page_behavior.js to show multiple
       <settings-section> instances at the same time.
     - Update tests.

    Bug: 1204457
2021-06-30 13:09:09 -04:00
Douglas Daniel f14a733f5d Merge pull request #9264 from brave/storybook-accounts-page-ui
Storybook: Built out UI for Wallet Accounts Page
2021-06-30 09:02:44 -06:00
Pranjal Jumde 8cccc21a49 Merge pull request #9255 from brave/brave_service_key
Fix #16633: Add service key to requests being parsed by BraveRequestHandler
2021-06-30 07:06:03 -07:00
Mark Pilgrim ed1dbaa4ce lint 2021-06-30 09:59:09 -04:00
Mark Pilgrim 8d5618f1dd Clear temporary IsProceeding flag after proceeding from a blocked domain 2021-06-30 09:59:09 -04:00
lminto 8a72b6217b Merge pull request #9277 from brave/fl-refactor
Refactor federated learning operational profile
2021-06-30 15:11:22 +02:00
brave-builds ac9f479fc6 1.28.41 2021-06-30 12:01:22 +00:00
Sergey P d2142a8343 review fixes 2021-06-30 14:48:57 +03:00
Sergey P 7f44403316 Added default key rotation 2021-06-30 14:48:57 +03:00
brave-builds 7d865ee5c0 1.28.40 2021-06-30 10:29:35 +00:00
LorenzoMinto 963010e0c5 Refactor federated learning operational profile 2021-06-30 09:44:35 +02:00
Taher f19b7eb815 Merge pull request #9281 from brave/bug/publisherfont
[Desktop] Brave News - Fixed publisher card title font-family
2021-06-29 21:05:51 -07:00
Brian R. Bondy d9d0401c82 Merge pull request #8545 from brave/cr92
Upgrade from Chromium 91 to Chromium 92
2021-06-29 23:02:38 -04:00
brave-builds 7be87271e9 1.28.39 2021-06-30 00:01:48 +00:00
alexsafe fdd7cbc2cf Merge pull request #9240 from brave/add-shields-settings
Add shields settings
2021-06-29 17:34:42 -04:00
mkarolin 7516f4491a Lint fixes. 2021-06-29 16:39:04 -04:00
mkarolin f18cdd57b8 A possible workaround for crashing browser tests.
A number of browser tests crash on Linux and MacOS in release build with
the stack ending on something like

base::internal::WeakLinkNode<base::ObserverList<extensions::ExtensionHostObserver, false, true, base::internal::UncheckedObserverAdapter> >::SetList(base::ObserverList<extensions::ExtensionHostObserver, false, true, base::internal::UncheckedObserverAdapter>*) + 393
base::ObserverList<extensions::ExtensionHostObserver, false, true, base::internal::UncheckedObserverAdapter>::Iter::Iter(base::ObserverList<extensions::ExtensionHostObserver, false, true, base::internal::UncheckedObserverAdapter> const*) + 46
extensions::ExtensionHost::Close() + 81
ExtensionActionViewController::HidePopup()

While I haven't gotten to the bottom of it, I am currently suspecting
that there is a problem with the base::ObserverList class. Specifically,
the fact that the list's begin method considers the list empty based on
the internal observers_ vector, while the list's empty method relies on
the separate observers_count_. In the debugger it looks to me like
begin() attempts to construct const_iterator(this) instead of
const_iterator() when the list is empty.

The workaround follows the example of ExtensionActionViewController by
adding an observer to the popup_host_, which we don't need but it should
prevent the ObserverList from being empty.
2021-06-29 16:39:04 -04:00
Max Karolinskiy bb3b1f5ea0 Converted some unit tests source_set to static_library. 2021-06-29 16:39:03 -04:00
Max Karolinskiy 81ac9fa49a Converted some components from source_set to static_library 2021-06-29 16:39:03 -04:00
mkarolin 6d59d9d9cf Migrate away from InkDropHostView::AnimateInkDrop()
We should use InkDropHost::AnimateToState() now.

Chromium changes:

https://chromium.googlesource.com/chromium/src/+/7a956cd01727bd626ca2711671935efa0128ee28

commit 7a956cd01727bd626ca2711671935efa0128ee28
Author: Peter Boström <pbos@chromium.org>
Date:   Fri May 7 20:08:13 2021 +0000

    Separate InkDropHost from InkDropHostView

    This essentially moves InkDropHostView into a new class with the
    temporary name InkDropHost. All accesses to InkDropHost are done through
    InkDropHostView::ink_drop(). InkDropHostView is now a new trivial View
    subclass which is provides an InkDropHost.

    A latter step will move ink_drop() down to InkDropHostView subclasses.
    Several clean-up steps are missing, but this may be easier to review.

    Bug: 931964
2021-06-29 16:39:02 -04:00
Mario Sanchez Prada fb3b22fcde Early return in BraveP3AService::OnHistogramChanged() if needed.
Early return in BraveP3AService::OnHistogramChanged() instead of
DCHECK-ing to prevent crashes that will happen for some histograms
that we found would be reported twice for the actual same event
as part of the same sequence, calling crashes on DCHECK-enabled builds.

So far, the events investigated were 3:

  Brave.NTP.SponsoredImagesEnabled
  Brave.SpeedReader.ToggleCount
  Brave.SpeedReader.Enabled

And in the three cases the actual same event (e.g. finishing the
initialization of the profile, restoring a previous session) ended
up trying to report the same histogram twice for the same event,
resulting on the histogram being properly sent on the first go
and then crashing on the second attempt (which would no longer be
necessary).

This patch simply replaces the DCHECK with an early return to make
sure that we don't crash on that second attempt when it happens,
and simply gracefully return instead.
2021-06-29 16:39:02 -04:00
mkarolin 9d274704b9 Lint fix. 2021-06-29 16:39:01 -04:00
mkarolin 4aa138db2c Formatting fix. 2021-06-29 16:39:01 -04:00
mkarolin 1e7b9d23be StatisticsRecorder::SetCallback was removed.
Chromium change:

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

commit e0e07a0e60557782a957168d0d62dedc2e7cf26b
Author: Shakti Sahu <shaktisahu@chromium.org>
Date:   Sun Jun 6 00:07:52 2021 +0000

    Added multiple callback support for histograms in StatisticsRecorder

    This CL adds multiple callback support for histogram samples. The
    callback to be invoked is wrapped inside a ScopedHistogramSampleObserver
    which unregisters itself on destruction. A base::ObserverListThreadSafe
    is used for each histogram to maintain the list of observers.

    There is a slight change in the behavior of these observers in that
    the samples are now always posted, whereas before they were notified
    synchronously on the sequence the histogram was recorded on. The
    posting of samples happens in the same thread in which the observer
    was registered.

    Bug: 1119851
2021-06-29 16:39:00 -04:00
mkarolin 5e9b09064b Updated strings for Chromium 92.0.4515.70. 2021-06-29 16:39:00 -04:00
mkarolin 2d914ae99e Updated patches from Chromium 92.0.4515.59 to Chromium 92.0.4515.70. 2021-06-29 16:38:59 -04:00
mkarolin 129bd0531b Conflict-resolved patches from Chromium 92.0.4515.59 to Chromium 92.0.4515.70. 2021-06-29 16:38:59 -04:00
Max Karolinskiy 02c12f1ac9 Fixes buffer size warning for generate_breakpad_symbols.py.
The warning is:
/usr/lib/python3.8/subprocess.py:844: RuntimeWarning: line buffering
(buffering=1) isn't supported in binary mode, the default buffer size
will be used self.stdout = io.open(c2pread, 'rb', bufsize)

Removed bufsize=1 parameter from subprocess.Popen. Also, used
subprocess.DEVNULL param for stderr instead of opening os.devnull
explicitly in the script.
2021-06-29 16:37:38 -04:00