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

Upgrade from Chromium 92 to Chromium 93 #9062

Merged
merged 205 commits into from
Aug 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
205 commits
Select commit Hold shift + click to select a range
c1461fb
Updated patches from Chromium 92.0.4515.159 to Chromium 93.0.4530.5.
mariospr Jul 15, 2021
6b7eb6a
Conflict-resolved patches from Chromium 92.0.4515.159 to Chromium 93.…
mariospr Jul 15, 2021
600b872
Adapt patch for chrome/browser/sync/profile_sync_service_factory.cc
mariospr Jun 4, 2021
fde91f3
Adapt patch for ios/chrome/browser/sync/profile_sync_service_factory.cc
mariospr Jun 4, 2021
5139fd8
chrome/browser/resources/downloads/toolbar.js migrated to TypeScript
mariospr Jun 4, 2021
60e779c
chrome/browser/resources/history/history_*.js migrated to TypeScript
mariospr Jun 4, 2021
1a6b067
Updated strings for Chromium 93.0.4530.5
mariospr Jun 4, 2021
5f27591
Add missing includes for base/containers/contain.h
mariospr Jun 4, 2021
0bf548c
Adapt Brave-specific's focus ring themeing for ring's color
mariospr Jun 4, 2021
cf01247
Replace reference to kCloseAllIcon with vector_icons::kCloseIcon
mariospr Jun 7, 2021
8a60c8f
Remove reference for kHandwritingRecognitionWebPlatformApi
mariospr Jun 7, 2021
d2a2c06
IWYU: mojo/public/cpp/bindings/self_owned_receiver.h
mariospr Jun 7, 2021
67b22ed
Remove references to kEnableProfilePickerOnStartupFeature
mariospr Jun 7, 2021
fdaf648
Migrate to use DictionaryValue::DictEmpty()
mariospr Jun 7, 2021
04c1047
Update expected value in ModelTypeTest.ModelTypeCounts unit test
mariospr Jun 7, 2021
f3785c7
Adapt to the removal of default sandbox type used for Brave Ads
mariospr Jun 4, 2021
059a146
[Android] Adapt to the removal of default sandbox type
samartnik Jun 7, 2021
d2a80c8
[Android] Adjusted java code to upstream changes
samartnik Jun 7, 2021
bae92dd
Fix failing farbling-related browser tests
mariospr Jun 8, 2021
3d33c65
Allow access to individual 3P cookies when ephemeral storage is enabled
mariospr Jun 9, 2021
c1cd91d
Adapt NetworkServiceNetworkDelegate to account for Ephemeral storage
mariospr Jul 8, 2021
255ba20
Adapt chromium_src override for cookie_settings_base for privacy mode
mariospr Jul 6, 2021
b229008
Updated patches from Chromium 93.0.4530.5 to Chromium 93.0.4535.3.
mariospr Jun 11, 2021
9799a48
Conflict-resolved patches from Chromium 93.0.4530.5 to Chromium 93.0.…
mariospr Jun 11, 2021
ad63971
Adapt to relocation of components/sync/driver/profile_sync_service.*
mariospr Jun 11, 2021
63d51da
Update patches to JS files now migrated to TypeScript
mariospr Jun 11, 2021
16c6e44
Update patches to JS files now migrated to TypeScript
mariospr Jun 11, 2021
c09b40d
Updated strings for Chromium 93.0.4535.3.
mariospr Jun 11, 2021
a6825e2
Adapt to relocation of prefs::kNtp{UseMostVisitedTiles,ShortcutsVisible}
mariospr Jun 11, 2021
e234417
Adapt usage of DictionaryValue::GetIntegerWithoutPathExpansion()
mariospr Jun 11, 2021
ab8073d
Add dummy implementation override of LogStore::staged_log_user_id()
mariospr Jun 11, 2021
23b2cbe
Adapt to removal of ListValue::AppendStrings()
mariospr Jun 11, 2021
b885ba1
Remove reference to features::kTabHoverCards
mariospr Jun 11, 2021
29d4b65
[Android] Changes for ProfileSyncServiceAndroid
samartnik Jun 11, 2021
43578e6
[Android] Tab.getUrlString was removed
samartnik Jun 11, 2021
47ca776
Check for ephemeral storage where needed from RestrictedCookieManager
mariospr Jun 16, 2021
15ecc54
Updated patches from Chromium 93.0.4535.3 to Chromium 93.0.4542.2.
mariospr Jun 18, 2021
6ed6e8b
Conflict-resolved patches from Chromium 93.0.4535.3 to Chromium 93.0.…
mariospr Jun 18, 2021
564b813
Update patches to JS files now migrated to TypeScript
mariospr Jun 18, 2021
d619b39
Adapt to relocation of safe_browsing_network_context.cc
mariospr Jun 18, 2021
4aa61ce
Adapt to relocation of //media/blink into Blink
mariospr Jun 18, 2021
2e3be9d
Adapt chromium override to change in ui/views/controls/focus_ring.cc
mariospr Jun 18, 2021
e25e2d4
Add CallWith=ScriptState to both definitions of getImageData()
mariospr Jun 18, 2021
ce1d7cb
Adapt to new getImageData() method without ImageDataSettings parameter
mariospr Jun 21, 2021
4ead6cf
Migrate subclasses of SecurityInterstitialPage to base::Value
mariospr Jun 18, 2021
a0d0d07
Updated strings for Chromium 93.0.4542.2.
mariospr Jun 18, 2021
ea6bf63
Adapt to views::Button::ink_drop() -> views::InkDrop::Get(view) change
mariospr Jun 18, 2021
91d8859
IWYU: base/logging.h
mariospr Jun 18, 2021
95e7528
Migrate away from base::AdaptCallbackForRepeating()
mariospr Jun 18, 2021
2ada5a3
Adapt to rename of ProfileSyncServiceBundle -> SyncServiceImplBundle
mariospr Jun 18, 2021
151004b
Adapt to ProfileManager::{OnProfileCreated->OnProfileCreationFinished}
mariospr Jun 18, 2021
83d3573
IWYU: base/feature_list.h
mariospr Jun 18, 2021
1b91ec9
Adapt to using GetTabVectorForCommandId()
mariospr Jun 18, 2021
45f60ce
Adapt to param's type change content::WebContents::{OnceGetter->Getter}
mariospr Jun 18, 2021
8c83b87
Only include v8_storage_estimate.h to subclass access StorageEstimage
mariospr Jun 21, 2021
ad99294
Use RenderFrame::GetMainRenderFrame() instead of RenderView's
mariospr Jun 21, 2021
7671dd8
[Ephemeral Storage] Adapt to removal of IsCookieAccessAllowed upstream
mariospr Jul 6, 2021
0423fd8
Fix rollup optimization failures due to new 'tsc' extension
mariospr Jun 21, 2021
e762e35
[Android] Adjustments for FeedSurfaceCoordinator code changes
samartnik Jun 22, 2021
fafc54d
[Android] SyncService related changes
samartnik Jun 22, 2021
cefa618
Remove Brave-specific code related to the Media Router extension
mariospr Jun 18, 2021
dfe0eb7
Fixes crash on Windows due to unknown key.
mkarolin Jun 22, 2021
c2788a3
Updated patches from Chromium 93.0.4542.2 to Chromium 93.0.4549.4.
mariospr Jun 23, 2021
c57b08d
Conflict-resolved patches from Chromium 93.0.4542.2 to Chromium 93.0.…
mariospr Jun 23, 2021
1b92444
Adapt to relocation of DropdownItemViewInfoListBuilder.java
mariospr Jun 23, 2021
552a11f
Updated strings for Chromium 93.0.4549.4.
mariospr Jun 23, 2021
a5a93a4
IWYU: services/network/public/mojom/url_response_head.mojom.h
mariospr Jun 23, 2021
0ea53ba
Port away from deprecated ListValue::Remove
mariospr Jun 23, 2021
a180f4b
Adapt focus_ring() calls to using views::FocusRing::Get(this) instead
mariospr Jun 23, 2021
2967bfe
Adapt Brave uses of content::WebContentsFrameReceiverSet to new rules
mariospr Jun 23, 2021
bdf97ba
Adapt override of TabStrip::SelectRelativeTab() to new signature
mariospr Jun 23, 2021
a71d954
Adapt sync_ui_util.cc override to removal of sync_ui_util namespace
mariospr Jun 23, 2021
07f9dc1
[Android] Added a stub for the Quick Action Search Widget
samartnik Jun 29, 2021
7ddb2c4
[Android] Omnibox was modularized
samartnik Jun 30, 2021
8f52a1a
[Android] Fixed browser tests for cr93
samartnik Jun 30, 2021
f512dd3
[Android] Removed Google services from main settings
samartnik Jul 5, 2021
de59aa8
[Android] Added filter for Brave classes for dex warnings after D8 de…
samartnik Jul 5, 2021
2d37de6
Adapt to NetworkServiceNetworkDelegate::OnAnnotateAndMoveUserBlockedC…
mariospr Jul 6, 2021
3800f99
Revert "Added a new value to chrome_constants.cc override."
mariospr Jul 6, 2021
8c4de02
Updated patches from Chromium 93.0.4549.4 to Chromium 93.0.4557.4.
mariospr Jul 7, 2021
2802276
Conflict-resolved patches from Chromium 93.0.4549.4 to Chromium 93.0.…
mariospr Jul 7, 2021
d50ebcc
Updated strings for Chromium 93.0.4557.4.
mariospr Jul 7, 2021
b016a4b
Revert "Revert "Added a new value to chrome_constants.cc override.""
mariospr Jul 7, 2021
4196354
Adapt to {PageInfoUI -> PageInfoViewFactory}::GetPermissionIcon() move
mariospr Jul 7, 2021
445fc22
Adapt to removal of FocusRing focus-aura functionality
mariospr Jul 7, 2021
bc1c273
Adapt to two new parameters in MenuButtonCoordinator's constructor
mariospr Jul 7, 2021
3341c06
Adapt to //components/safe_browsing/content/{web_ui->browser/web_ui}
mariospr Jul 7, 2021
2496405
Remove our own GetFirstPartyURL() method and use upstream's one.
mariospr Jul 7, 2021
1b68fed
Adapt to NTP preference names relocating once again.
mariospr Jul 7, 2021
b155e28
IWYU: ui/gfx/canvas.h
mariospr Jul 7, 2021
78761b3
Relocate chromium_src override of kChooserBluetoothOverviewURL
mariospr Jul 7, 2021
5e8d3db
Add Brave-specific definition of newly-added kSyncTrustedVaultOptInURL
mariospr Jul 7, 2021
3bdb917
Fix build errors due to the -Wc++11-narrowing compilation flag
mariospr Jul 7, 2021
4608286
IWYU: early_hints.mojom.h
mkarolin Jul 8, 2021
e3ebbac
[Android] Java code adjustments
samartnik Jul 8, 2021
8666831
[Android] Changes for MenuButton implementation
samartnik Jul 9, 2021
37e8075
[iOS] iOS 12 has been deprecated.
mkarolin Jul 12, 2021
21ad57e
[iOS] ProfileSyncService was renamed to SyncServiceImpl.
mkarolin Jul 13, 2021
9ebec47
[iOS] SyncSetupService::IsSyncEnabled has been deprecated.
mkarolin Jul 13, 2021
234a1a2
[iOS] ProfileSyncServiceFactory -> SyncServiceFactory.
mkarolin Jul 13, 2021
bfc0516
WIP: Tile customization code was removed from Instant NTPs.
mkarolin Jul 13, 2021
536e3df
Remove reference to features::kNewProfilePicker
mariospr Jul 15, 2021
b3ab8c2
Updated patches from Chromium 93.0.4557.4 to Chromium 93.0.4573.0.
mariospr Jul 15, 2021
2f5a836
Conflict-resolve patches from Chromium 93.0.4557.4 to Chromium 93.0.4…
mariospr Jul 15, 2021
20735c7
Adapt patches to chrome/{android => browser/ui/android/toolbar} move
mariospr Jul 15, 2021
c70f084
Remove Brave-specific adjustment to check removed from test case.
mariospr Jul 15, 2021
0d95d59
Remove includes and patches related to Blink's modules_idl_files.gni
mariospr Jul 15, 2021
ae3a9f9
Updated strings for Chromium 93.0.4573.0.
mariospr Jul 15, 2021
a41edb9
Adapt GN dependency on //components/safe_browsing/core:features
mariospr Jul 15, 2021
1181085
Adapt GN dependencies on modules from //chrome/browser/search
mariospr Jul 15, 2021
2fca5a9
IWYU: base/stl_util.h
mariospr Jul 15, 2021
3cef500
IWYU: services/network/public/cpp/resource_request.h
mariospr Jul 15, 2021
f4621dc
Adapt calls for OpaqueBrowserFrameViewLayout border and edge thickness
mariospr Jul 15, 2021
55223c1
Port away from deprecated ListValue::empty()
mariospr Jul 15, 2021
4727e08
CookieOptions::SamePartyCookieContextType -> SamePartyContext
mariospr Jul 15, 2021
ac45191
Adapt to new return type for net::TransportSocketParams::destination()
mariospr Jul 15, 2021
3d9662a
Reference KeySystems from inside the media namespace
mariospr Jul 15, 2021
413fe24
Fix build error due to unnecessary use of base::NoDestructor<T>
mariospr Jul 15, 2021
09c8952
Use COMPONENT_EXPORT(PERMISSIONS_COMMON) with kPermissionLifetime
mariospr Jul 15, 2021
b84c7a0
Adapt Brave-specific customization for folder icons in bookmarks bar
mariospr Jul 15, 2021
b43ec9f
Avoid redefinition of the cr-toolbar name for history page
mariospr Jul 15, 2021
d010b06
Avoid redefinition of the cr-toolbar name for bookmarks page
mariospr Jul 15, 2021
bc70a6b
Include base/cxx17_backports.h anywhere where base::size() is used
mariospr Jul 15, 2021
4d13897
Add constness to FakeAutocompleteProviderClient::GetPrefs() override
mariospr Jul 15, 2021
a99d0b5
IWYU: services/network/public/cpp/shared_url_loader_factory.h
mariospr Jul 15, 2021
f221d82
Migrate leftovers of base::nullopt in master to absl::nullopt
mariospr Jul 16, 2021
d7bdc1c
Adapt test expectation to new format of the Javascript error message
mariospr Jul 16, 2021
39a6b94
ExtensionServiceTestBase needs a new dependency.
mkarolin Jul 16, 2021
0021d75
[Android] Changes for modularized toolbar
samartnik Jul 19, 2021
8a49a29
[Android] Changed base app color
samartnik Jul 20, 2021
9158e4e
Polymer overriding supports direct PolymerElement subclassing
petemill Jul 21, 2021
ec0eed4
Polymer overriding - replace cr-toolbar with br-toolbar always, witho…
petemill Jul 21, 2021
3b73a10
Update remaining references to br_toolbar.m.js to br_toolbar.js instead
mariospr Jul 21, 2021
76d0c79
Disable debug mode for ui/webui/resources/polymer_overriding.js
mariospr Jul 21, 2021
36448f5
Settings: modify routes at a more appropriate time
petemill Jul 21, 2021
dc2e0b9
[Android] Fixed assert for favicon for not valid GURL
samartnik Jul 22, 2021
4f5132b
Updated patches from Chromium 93.0.4573.0 to Chromium 93.0.4577.8.
mariospr Jul 22, 2021
1eb7d60
Conflict-resolved patches from Chromium 93.0.4573.0 to Chromium 93.0.…
mariospr Jul 22, 2021
9249c0b
Adapt unittest expectation to removal of |num_items| variable
mariospr Jul 22, 2021
ef4f2e0
Updated strings for Chromium 93.0.4577.8.
mariospr Jul 22, 2021
87e5762
Replace usage of ListValue::Clear() with Value::ClearList()
mariospr Jul 22, 2021
22e6aa3
Removed definition override of no longer existing constant.
mariospr Jul 22, 2021
8f1e644
Remove no longer existing IsEphemeralGuestProfile() method
mariospr Jul 22, 2021
f090ff9
Adapt to removal of Value::GetAsInteger()
mariospr Jul 22, 2021
48de1fc
IWYU: <ostream>
mariospr Jul 22, 2021
6ad91f8
Adapt SyncServiceImpl::StopImpl(CLEAR_DATA) -> StopAndClearImpl()
mariospr Jul 22, 2021
d229931
Drop changes to disable the sign in prompt from password signin promo
mariospr Jul 22, 2021
f15fe54
Remove const qualifier for sql::Statement parameter
mariospr Jul 22, 2021
4f5933f
DialogDelegateView::OnDialogInitialized() -> OnWidgetInitialized()
mariospr Jul 22, 2021
cc67c42
Don't pass out-of-bounds value to sql::Statement::ColumnInt64()
mariospr Jul 22, 2021
a00ba47
[Android] Moved bytecode patching
samartnik Jul 23, 2021
009f865
[Android] Adjusted java code to new c-tor and function signatures
samartnik Jul 23, 2021
6737cfc
Update remaining references to br_toolbar_search_field.m.js
mariospr Jul 23, 2021
fea9a0a
Remove legacy_task_runner parameter from LocalStorageImpl's constructor
mariospr Jul 26, 2021
510310c
Disable BraveContentSettingsAgentImplV2BrowserTest.WebGLReadPixels on…
mariospr Jul 27, 2021
02a3bba
Conflict-resolved patches from Chromium 93.0.4573.8 to Chromium 93.0.…
mkarolin Jul 27, 2021
7feb2d1
Updated patches from Chromium 93.0.4573.8 to Chromium 93.0.4577.15.
mkarolin Jul 27, 2021
ae157ca
Normalize line endings.
mkarolin Aug 18, 2021
b49d527
Updated strings for Chromium 93.0.4577.15.
mkarolin Jul 27, 2021
422e243
[iOS] Use ios_provider_target.
mkarolin Jul 27, 2021
d1b83f0
[iOS] ios::GetChromeBrowserProvider now returns a reference.
mkarolin Jul 28, 2021
f3e7d3b
[iOS] Adapt to modernization of base::Value use in components/bookmarks.
mkarolin Jul 28, 2021
2125540
[Android] Fix for browser tests
samartnik Jul 28, 2021
08fbe1f
Conflict-resolved patches from Chromium 93.0.4573.15 to Chromium 93.0…
mkarolin Jul 29, 2021
d2aa370
Updated patches from Chromium 93.0.4573.15 to Chromium 93.0.4577.18.
mkarolin Jul 29, 2021
61c8a57
Updated strings for Chromium 93.0.4577.18.
mkarolin Jul 29, 2021
55e3f62
No longer need to install pywin32 manually.
mkarolin Jul 29, 2021
f9ea0dc
[Android] C-tor signature for FeedSurfaceCoordinator was changed
samartnik Jul 29, 2021
0dfd16e
IWYU: <map>
mkarolin Aug 2, 2021
87b9970
GlobalFrameRoutingId was renamed to GlobalRenderFrameHostId.
mkarolin Aug 16, 2021
9e4390a
DialogDelegate::OnDialogInitialized was removed.
mkarolin Aug 2, 2021
9af197a
No longer need to use python2 to get rust deps on Windows.
mkarolin Aug 2, 2021
da2acfa
Conflict-resolved patches from Chromium 93.0.4573.18 to Chromium 93.0…
mkarolin Aug 4, 2021
921c6c1
Updated patches from Chromium 93.0.4573.18 to Chromium 93.0.4577.25.
mkarolin Aug 4, 2021
dad87e1
Updated strings for Chromium 93.0.4577.25.
mkarolin Aug 4, 2021
55e2b08
DeviceInfoSyncBridge::RefreshLocalDeviceInfoIfNeeded signature changed.
mkarolin Aug 5, 2021
595fa6d
[Android] Fix for lint error
samartnik Aug 5, 2021
c89af60
Fixes settings UI import statement.
mkarolin Aug 5, 2021
f0f80ae
Restore most visited / custom links NTP logic after InstantService re…
bsclifton Aug 5, 2021
949b6e1
Formatting fix.
mkarolin Aug 9, 2021
b96f1b7
[Android] Fixed accent color
samartnik Aug 9, 2021
2742122
Adapt GN deps to //chrome/browser/{search => new_tab_page/modules}
mariospr Aug 10, 2021
696d281
Downloads WebUI: Replace toolbar with brave's via automatic replaceme…
petemill Aug 7, 2021
13cf21c
l10n: do not append `rel="noopener noreferrer"` to anchor elements in…
petemill Aug 10, 2021
b781d9f
Settings: avoid timing issues with creating elements before polymer p…
petemill Aug 10, 2021
d305abc
Settings: override a classes "static get properties" via subclassing …
petemill Aug 10, 2021
cd42808
Settings: correctly modify templates for elements which are defined b…
petemill Aug 10, 2021
b47191c
Conflict-resolved patches from Chromium 93.0.4577.25 to Chromium 93.0…
mkarolin Aug 12, 2021
9d3ea1c
Updated patches from Chromium 93.0.4577.25 to Chromium 93.0.4577.42.
mkarolin Aug 12, 2021
bdebe2f
[Android] New c-tor signatures for FeedSurfaceCoordinator and NewTabPage
samartnik Aug 12, 2021
4507cf6
Fixes pylint errors/warnings.
mkarolin Aug 13, 2021
2eea2b3
Updated strings for Chromium 93.0.4577.42.
mkarolin Aug 13, 2021
3b97a2b
[Win] Temporarily run browser tests with --disable-gpu-sandbox.
mkarolin Aug 13, 2021
95336ef
Settings: Import data dialog UI compatible with chromium es class com…
petemill Aug 13, 2021
8ac1f66
Adapt to relocation of components/sync/driver/profile_sync_service.* II.
mkarolin Aug 16, 2021
6afce0b
fixup! fix brave/components/brave_shields deps fixes https://github.c…
mariospr Aug 17, 2021
4a86df2
Convert BraveDRMTabHelper to use RenderFrameHostReceiverSet
mariospr Aug 17, 2021
0162bed
Convert BraveShieldsWebContentsObserver to use RenderFrameHostReceive…
mariospr Aug 17, 2021
0db7868
Added guards for widevine related code
samartnik Aug 17, 2021
5767f03
[iOS] Do not override upstream ios_deployment_target.
mkarolin Aug 17, 2021
23d8d7c
Remove chrome-browser-chrome_content_browser_client_receiver_bindings…
mariospr Aug 17, 2021
cb97858
Lint fix.
mkarolin Aug 17, 2021
4ff949d
Removed no longer needed patch of key_system_config_selector.cc.
mkarolin Aug 18, 2021
7f90b91
Formatting fix.
mkarolin Aug 18, 2021
7cff5f1
fixup! Adapt to the removal of default sandbox type used for Brave Ads
mkarolin Aug 18, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 2 additions & 9 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,10 @@ hooks = [
'action': ['vpython3', 'script/download_rust_deps.py', '--platform', 'ios'],
},
{
# Download rust deps if necessary for Windows
# Download rust deps if necessary for Windows, Linux, and macOS
'name': 'download_rust_deps',
'pattern': '.',
'condition': 'checkout_win',
'action': ['vpython', 'script/download_rust_deps.py'],
},
{
# Download rust deps if necessary for Linux and macOS
'name': 'download_rust_deps',
'pattern': '.',
'condition': 'not checkout_android and not checkout_ios and not checkout_win',
'condition': 'not checkout_android and not checkout_ios',
'action': ['vpython3', 'script/download_rust_deps.py'],
},
{
Expand Down
7 changes: 5 additions & 2 deletions android/brave_java_sources.gni
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ brave_java_sources = [
"../../brave/android/java/org/chromium/chrome/browser/toolbar/menu_button/BraveMenuButtonCoordinator.java",
"../../brave/android/java/org/chromium/chrome/browser/toolbar/top/BraveTabSwitcherModeTTCoordinatorPhone.java",
"../../brave/android/java/org/chromium/chrome/browser/toolbar/top/BraveTabSwitcherModeTTPhone.java",
"../../brave/android/java/org/chromium/chrome/browser/toolbar/top/BraveToolbarLayout.java",
"../../brave/android/java/org/chromium/chrome/browser/toolbar/top/BraveToolbarLayoutImpl.java",
"../../brave/android/java/org/chromium/chrome/browser/toolbar/top/BraveTopToolbarCoordinator.java",
"../../brave/android/java/org/chromium/chrome/browser/ui/brave_tricks/checkbox_to_switch/CheckBoxPreference.java",
"../../brave/android/java/org/chromium/chrome/browser/ui/messages/infobar/BraveSimpleConfirmInfoBarBuilder.java",
Expand Down Expand Up @@ -288,7 +288,10 @@ brave_components_browser_ui_site_settings_android_java = [

brave_browser_ui_android_appmenu_internal_sources = [ "//brave/browser/ui/android/appmenu/internal/java/src/org/chromium/chrome/browser/ui/appmenu/BraveAppMenu.java" ]

brave_browser_ui_android_toolbar_sources = [ "//brave/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/bottom/BraveBottomControlsMediator.java" ]
brave_browser_ui_android_toolbar_sources = [
"//brave/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/bottom/BraveBottomControlsMediator.java",
"//brave/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/BraveToolbarLayout.java",
]

brave_java_base_sources = [
"//brave/android/java/org/chromium/base/BraveCommandLineInitUtil.java",
Expand Down
7 changes: 7 additions & 0 deletions android/browsertests_apk/AndroidManifest.xml.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@
</intent-filter>
</activity>

<receiver android:name="org.chromium.chrome.browser.quickactionsearchwidget.QuickActionSearchWidgetProvider"
android:exported="true">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
</receiver>

<service android:name="org.chromium.components.background_task_scheduler.BackgroundTaskJobService"
android:exported="false"
android:permission="android.permission.BIND_JOB_SERVICE"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import android.widget.FrameLayout;
import android.widget.ScrollView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import org.chromium.base.ApiCompatibilityUtils;
Expand All @@ -21,18 +22,20 @@
import org.chromium.chrome.browser.ntp.ScrollableContainerDelegate;
import org.chromium.chrome.browser.ntp.SnapScrollHelper;
import org.chromium.chrome.browser.ntp.snippets.SectionHeaderView;
import org.chromium.chrome.browser.privacy.settings.PrivacyPreferencesManagerImpl;
import org.chromium.chrome.browser.profiles.Profile;
import org.chromium.chrome.browser.share.ShareDelegate;
import org.chromium.chrome.browser.tab.Tab;
import org.chromium.chrome.browser.tabmodel.TabModelSelector;
import org.chromium.chrome.browser.toolbar.top.Toolbar;
import org.chromium.chrome.browser.ui.messages.snackbar.SnackbarManager;
import org.chromium.components.browser_ui.bottomsheet.BottomSheetController;
import org.chromium.ui.UiUtils;
import org.chromium.ui.base.WindowAndroid;

public class BraveFeedSurfaceCoordinator extends FeedSurfaceCoordinator {
private Activity mActivity;
private ScrollView mScrollViewForPolicy;
// To delete in bytecode, members from parent class will be used instead.
private @Nullable ScrollView mScrollViewForPolicy;
private View mNtpHeader;
private FrameLayout mRootView;

Expand All @@ -44,11 +47,17 @@ public BraveFeedSurfaceCoordinator(Activity activity, SnackbarManager snackbarMa
boolean isPlaceholderShownInitially, BottomSheetController bottomSheetController,
Supplier<ShareDelegate> shareDelegateSupplier,
@Nullable ScrollableContainerDelegate externalScrollableContainerDelegate,
TabModelSelector tabModelSelector, @NewTabPageLaunchOrigin int launchOrigin) {
@NewTabPageLaunchOrigin int launchOrigin,
PrivacyPreferencesManagerImpl privacyPreferencesManager,
@NonNull Supplier<Toolbar> toolbarSupplier,
FeedLaunchReliabilityLoggingState launchReliabilityLoggingState,
@Nullable FeedSwipeRefreshLayout swipeRefreshLayout, boolean overScrollDisabled) {
super(activity, snackbarManager, windowAndroid, snapScrollHelper, ntpHeader,
sectionHeaderView, showDarkBackground, delegate, pageNavigationDelegate, profile,
isPlaceholderShownInitially, bottomSheetController, shareDelegateSupplier,
externalScrollableContainerDelegate, tabModelSelector, launchOrigin);
externalScrollableContainerDelegate, launchOrigin, privacyPreferencesManager,
toolbarSupplier, launchReliabilityLoggingState, swipeRefreshLayout,
overScrollDisabled);
}

@Override
Expand Down Expand Up @@ -82,4 +91,8 @@ void createScrollViewForPolicy() {
public boolean isEnhancedProtectionPromoEnabled() {
return false;
}

public boolean isReliabilityLoggingEnabled() {
return false;
}
}
38 changes: 36 additions & 2 deletions android/java/apk_for_test.flags
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,14 @@
}

-keep class org.chromium.chrome.browser.omnibox.suggestions.editurl.EditUrlSuggestionProcessor {
public <init>(...);
*** mHasClearedOmniboxForFocus;
}

-keep class org.chromium.chrome.browser.omnibox.suggestions.editurl.BraveEditUrlSuggestionProcessor {
public <init>(...);
}

-keep class org.chromium.chrome.browser.sync.settings.ManageSyncSettings {
*** mGoogleActivityControls;
*** mSyncEncryption;
Expand Down Expand Up @@ -132,6 +137,11 @@
-keep class org.chromium.chrome.browser.toolbar.top.TopToolbarCoordinator {
*** mTabSwitcherModeCoordinatorPhone;
*** mOptionalButtonController;
public <init>(...);
}

-keep class org.chromium.chrome.browser.toolbar.top.BraveTopToolbarCoordinator {
public <init>(...);
}

-keep class org.chromium.chrome.browser.toolbar.top.TabSwitcherModeTTCoordinatorPhone {
Expand Down Expand Up @@ -281,7 +291,7 @@

-keep class org.chromium.chrome.browser.customtabs.features.toolbar.CustomTabToolbar

-keep class org.chromium.chrome.browser.toolbar.top.BraveToolbarLayout
-keep class org.chromium.chrome.browser.toolbar.top.BraveToolbarLayoutImpl

-keep class org.chromium.chrome.browser.toolbar.top.ToolbarPhone

Expand Down Expand Up @@ -321,4 +331,28 @@

-keep class org.chromium.chrome.browser.omnibox.status.BraveStatusMediator {
public <init>(...);
}
}

-keep class org.chromium.chrome.browser.feed.FeedSurfaceCoordinator {
*** mScrollViewForPolicy;
*** mNtpHeader;
*** mRootView;
*** isEnhancedProtectionPromoEnabled(...);
*** isReliabilityLoggingEnabled(...);
}

-keep class org.chromium.chrome.browser.feed.BraveFeedSurfaceCoordinator {
*** mScrollViewForPolicy;
*** mNtpHeader;
*** mRootView;
*** isEnhancedProtectionPromoEnabled(...);
*** isReliabilityLoggingEnabled(...);
}

-keep class org.chromium.chrome.browser.toolbar.menu_button.MenuButtonCoordinator {
public <init>(...);
}

-keep class org.chromium.chrome.browser.toolbar.menu_button.BraveMenuButtonCoordinator {
public <init>(...);
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ public class BraveRewardsDonationSentActivity extends Activity implements BraveR
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.brave_rewards_donation_sent);
currentTabId_ = IntentUtils.safeGetIntExtra(getIntent(), BraveRewardsSiteBannerActivity.TAB_ID_EXTRA, -1);
currentTabId_ = IntentUtils.safeGetIntExtra(
getIntent(), BraveRewardsSiteBannerActivity.TAB_ID_EXTRA, -1);
mBraveRewardsNativeWorker = BraveRewardsNativeWorker.getInstance();
mBraveRewardsNativeWorker.AddObserver(this);

String publisherFavIconURL = mBraveRewardsNativeWorker.GetPublisherFavIconURL(currentTabId_);
String publisherFavIconURL =
mBraveRewardsNativeWorker.GetPublisherFavIconURL(currentTabId_);
Tab currentActiveTab = BraveRewardsHelper.currentActiveChromeTabbedActivityTab();
String url = currentActiveTab.getUrlString();
String url = currentActiveTab.getUrl().getSpec();
String favicon_url = (publisherFavIconURL.isEmpty()) ? url : publisherFavIconURL;
mIconFetcher = new org.chromium.chrome.browser.BraveRewardsHelper(currentActiveTab);
mIconFetcher.retrieveLargeIcon(favicon_url, this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ private void retrieveLargeIconInternal() {
//favIconURL (or content URL) is still not available, try to read it again
if (mFaviconUrl == null || mFaviconUrl.isEmpty() || mFaviconUrl.equals("clear")) {
if (mTab != null) {
mFaviconUrl = mTab.getUrlString();
mFaviconUrl = mTab.getUrl().getSpec();
}

mHandler.postDelayed(new Runnable() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public void TriggerOnNotifyFrontTabUrlChanged() {
public void run() {
Tab tab = BraveRewardsHelper.currentActiveChromeTabbedActivityTab();
if (tab != null && !tab.isIncognito()) {
OnNotifyFrontTabUrlChanged(tab.getId(), tab.getUrlString());
OnNotifyFrontTabUrlChanged(tab.getId(), tab.getUrl().getSpec());
}
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -938,22 +938,23 @@ public void ShowRewardsSummary() {

public void ShowWebSiteView() {
tvBrBatWallet.setText(String.format(Locale.getDefault(), "%.3f", 0.0));
String usdText = String.format(this.root.getResources().getString(R.string.brave_ui_usd), "0.00");
((TextView)this.root.findViewById(R.id.br_usd_wallet)).setText(usdText);
String usdText =
String.format(this.root.getResources().getString(R.string.brave_ui_usd), "0.00");
((TextView) this.root.findViewById(R.id.br_usd_wallet)).setText(usdText);
CreateUpdateBalanceTask();
ScrollView sv_new = (ScrollView)this.root.findViewById(R.id.sv_no_website);
ScrollView sv_new = (ScrollView) this.root.findViewById(R.id.sv_no_website);
sv_new.setVisibility(View.VISIBLE);
ShowRewardsSummary();
((LinearLayout)this.root.findViewById(R.id.website_summary)).setVisibility(View.VISIBLE);
((LinearLayout) this.root.findViewById(R.id.website_summary)).setVisibility(View.VISIBLE);
EnableWalletDetails(true);
Tab currentActiveTab = BraveRewardsHelper.currentActiveChromeTabbedActivityTab();
if (currentActiveTab != null && !currentActiveTab.isIncognito()) {
String url = currentActiveTab.getUrlString();
String url = currentActiveTab.getUrl().getSpec();
if (URLUtil.isValidUrl(url)) {
mBraveRewardsNativeWorker.GetPublisherInfo(currentActiveTab.getId(), url);
mPublisherFetcher = new Timer();
mPublisherFetcher.schedule(new PublisherFetchTimer(currentActiveTab.getId(), url),
PUBLISHER_INFO_FETCH_RETRY, PUBLISHER_INFO_FETCH_RETRY);
PUBLISHER_INFO_FETCH_RETRY, PUBLISHER_INFO_FETCH_RETRY);
} else {
btRewardsSummary.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
btRewardsSummary.setClickable(false);
Expand Down Expand Up @@ -1421,7 +1422,6 @@ public void run() {
}
}


@Override
public void OnPublisherInfo(int tabId) {
publisherExist = true;
Expand All @@ -1433,14 +1433,14 @@ public void OnPublisherInfo(int tabId) {

String publisherFavIconURL = mBraveRewardsNativeWorker.GetPublisherFavIconURL(currentTabId);
Tab currentActiveTab = BraveRewardsHelper.currentActiveChromeTabbedActivityTab();
String url = currentActiveTab.getUrlString();
String url = currentActiveTab.getUrl().getSpec();
final String favicon_url = (publisherFavIconURL.isEmpty()) ? url : publisherFavIconURL;

mIconFetcher.retrieveLargeIcon(favicon_url, this);

GridLayout gl = (GridLayout)this.root.findViewById(R.id.website_summary_grid);
GridLayout gl = (GridLayout) this.root.findViewById(R.id.website_summary_grid);
gl.setVisibility(View.VISIBLE);
LinearLayout ll = (LinearLayout)this.root.findViewById(R.id.br_central_layout);
LinearLayout ll = (LinearLayout) this.root.findViewById(R.id.br_central_layout);
ll.setBackgroundColor(Color.WHITE);

String pubName = thisObject.mBraveRewardsNativeWorker.GetPublisherName(currentTabId);
Expand All @@ -1452,22 +1452,25 @@ public void OnPublisherInfo(int tabId) {
pubSuffix = thisObject.root.getResources().getString(R.string.brave_ui_on_twitch);
}
pubName = "<b>" + pubName + "</b> " + pubSuffix;
TextView tv = (TextView)thisObject.root.findViewById(R.id.publisher_name);
TextView tv = (TextView) thisObject.root.findViewById(R.id.publisher_name);
tv.setText(Html.fromHtml(pubName));
tv = (TextView)thisObject.root.findViewById(R.id.publisher_attention);
String percent = Integer.toString(thisObject.mBraveRewardsNativeWorker.GetPublisherPercent(currentTabId)) + "%";
tv = (TextView) thisObject.root.findViewById(R.id.publisher_attention);
String percent = Integer.toString(thisObject.mBraveRewardsNativeWorker.GetPublisherPercent(
currentTabId))
+ "%";
tv.setText(percent);
if (btAutoContribute != null) {
btAutoContribute.setOnCheckedChangeListener(null);
btAutoContribute.setChecked(!thisObject.mBraveRewardsNativeWorker.GetPublisherExcluded(currentTabId));
btAutoContribute.setChecked(
!thisObject.mBraveRewardsNativeWorker.GetPublisherExcluded(currentTabId));
btAutoContribute.setOnCheckedChangeListener(autoContributeSwitchListener);
}

UpdatePublisherStatus(
thisObject.mBraveRewardsNativeWorker.GetPublisherStatus(currentTabId));
thisObject.mBraveRewardsNativeWorker.GetPublisherStatus(currentTabId));

tv = (TextView)root.findViewById(R.id.br_no_activities_yet);
gl = (GridLayout)thisObject.root.findViewById(R.id.br_activities);
tv = (TextView) root.findViewById(R.id.br_no_activities_yet);
gl = (GridLayout) thisObject.root.findViewById(R.id.br_activities);
if (tv != null && gl != null) {
tv.setVisibility(View.GONE);
gl.setVisibility(View.GONE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void onClick(View view) {

String publisherFavIconURL = mBraveRewardsNativeWorker.GetPublisherFavIconURL(currentTabId_);
Tab currentActiveTab = BraveRewardsHelper.currentActiveChromeTabbedActivityTab();
String url = currentActiveTab.getUrlString();
String url = currentActiveTab.getUrl().getSpec();
String favicon_url = (publisherFavIconURL.isEmpty()) ? url : publisherFavIconURL;
mIconFetcher = new BraveRewardsHelper(currentActiveTab);
mIconFetcher.retrieveLargeIcon(favicon_url, this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import org.chromium.chrome.browser.preferences.BravePrefServiceBridge;
import org.chromium.chrome.browser.settings.BraveSyncScreensPreference;
import org.chromium.chrome.browser.settings.SettingsLauncherImpl;
import org.chromium.chrome.browser.sync.ProfileSyncService;
import org.chromium.chrome.browser.sync.SyncService;
import org.chromium.chrome.browser.tab.Tab;
import org.chromium.chrome.browser.ui.messages.infobar.BraveSimpleConfirmInfoBarBuilder;
import org.chromium.chrome.browser.ui.messages.infobar.SimpleConfirmInfoBarBuilder;
Expand All @@ -43,7 +43,7 @@ private static void showSetupV2IfRequired() {
return;
}

boolean isV2User = ProfileSyncService.get() != null && ProfileSyncService.get().isFirstSetupComplete();
boolean isV2User = SyncService.get() != null && SyncService.get().isFirstSetupComplete();
if (isV2User) {
braveSyncWorker.setSyncV2MigrateNoticeDismissed(true);
return;
Expand Down
Loading