Chromium 142 broke delta updates on Windows. This commit fixes them by
reverting upstream commits 13ca199c and a4d120da with a few patches,
vendored code and chromium_src overrides. The changes should affect the
browser Windows installer only, and not the Omaha update client.
Co-authored-by: Max Karolinskiy <max@brave.com>
This PR is in preparation to share this same util function in
conversation V2 API client. Before this PR, we only support parsing
`model` in the response for conversation API and not custom models.
This PR does not change this fact so we only support looking up Leo
models from `model` in the response which will be used by conversation
V2 and do not support looking up custom models, which we can add
support in the future if needed.
This adds a new tab helper that will be used in the AIChatUIPageHandler to associate content with the AI Chat WebUI. The general implementation matches `components/ai_chat/content/browser/ai_chat_tab_helper.cc` but uses `WebState` APIs. This change also introduces a temporary protocol `AIChatAssociatedContentPageFetcher` to handle fetching page content using the existing Swift code
This adds support for passing in a `WebState` for the initial associated content of an AI Chat WebUI instance (ie "sidebar" mode).
The change also moves the UI handler Obj-C bridge types to avoid a cyclical dependency since we now need to depend on `BraveWebView` access in the WebUI code to obtain a `WebState`
* [cr143 follow up] Allow for multiple calls to WebUIBrowserInterfaceBrokerRegistry::ForWebUI.
Disables DCHECK in WebUIBrowserInterfaceBrokerRegistry::ForWebUI that
disallows calling this method multiple times for the same WebUI type.
We want to be able to register interfaces separately based on feature
flags and without having to patch SettingsUI class with each interface
we add.
The PR enables adblock resource sharing between the default and the additional engine to save memory.
It also replaces text based resource merging AdBlockCustomResourceProvider to .add_resource(..) calls.
Update l10n for 1.85.x (Chromium 143). (#32503)
* Fixes replacement map.
Some languages use non-breaking whitespace intead of regular space in
XTB files, so our map wasn't matching. Replaced spaces to \s in the map
patterns.
* Fixes error printing.
* Adjust ICU strings validation pattern.
* Fixes <br> -> <br/> tags.
* Updated l10n for 1.85.x release.
Will now display Premium labels for Premium models in the Regenerate Answer menu for non-premium users.
Will now show the Premium Suggestion alert if a non-premium user click on a Premium model in the Regenerate Answer menu
* Rename BraveSidePanel to SidePanel.
We fully replace upstream's SidePanel class with our own. To avoid
adding chromium_src redefinitions in multiple places we can just use the
upstream name for our class.
* Rename brave_side_panel.h/cc -> side_panel.h/cc
* Rename brave_side_panel_resize_widget.h/cc -> side_panel_resize_widget.h/cc
* Add Ollama integration to Leo Assistant settings
- Add OllamaService mojo interface bindings in settings UI
- Include ollama.mojom in settings build configuration
- Add Ollama model discovery UI in model list section
- Update content security policy for Ollama endpoints
- Add localized strings for Ollama integration
- Wire up Ollama service through settings browser proxy