mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2450f37f62 |
@@ -1 +1 @@
|
||||
150.0.7871.114
|
||||
150.0.7871.46
|
||||
|
||||
@@ -1038,7 +1038,6 @@ chrome/browser/extensions/api/braille_display_private/braille_display_private_ap
|
||||
chrome/browser/extensions/api/content_settings/content_settings_apitest.cc
|
||||
chrome/browser/extensions/api/context_menus/extension_context_menu_browsertest.cc
|
||||
chrome/browser/extensions/api/contextual_tasks_private/contextual_tasks_messaging_browsertest.cc
|
||||
chrome/browser/extensions/api/contextual_tasks_private/contextual_tasks_private_apitest.cc
|
||||
chrome/browser/extensions/api/debugger/debugger_apitest.cc
|
||||
chrome/browser/extensions/api/debugger/extension_dev_tools_infobar_delegate.cc
|
||||
chrome/browser/extensions/api/declarative_content/content_predicate.h
|
||||
@@ -4540,6 +4539,7 @@ extensions/browser/updater/extension_downloader_test_helper.cc
|
||||
extensions/browser/updater/extension_downloader_unittest.cc
|
||||
extensions/browser/updater/safe_manifest_parser.h
|
||||
extensions/browser/updater/safe_manifest_parser_unittest.cc
|
||||
extensions/browser/updater/update_data_provider_unittest.cc
|
||||
extensions/common/api/PRESUBMIT.py
|
||||
extensions/common/api/extensions_manifest_types.json
|
||||
extensions/common/api/i18n.json
|
||||
|
||||
@@ -960,18 +960,6 @@
|
||||
"context": "Text on a toast notification that is shown when a link opens a new tab while Zen Mode is enabled.",
|
||||
"message": "New tab opened"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_NATIVE_FRAME_MATERIALS",
|
||||
"source": "chrome/app/settings_strings.grdp",
|
||||
"context": "Label for the toggle which enables or disables native system materials on the browser frame.",
|
||||
"message": "Use native frame materials (experimental)"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_NATIVE_FRAME_MATERIALS_DESCRIPTION",
|
||||
"source": "chrome/app/settings_strings.grdp",
|
||||
"context": "Description for the toggle which enables native system materials on the browser frame.",
|
||||
"message": "Applies native materials to the browser frame surfaces. May cause UI clarity issues."
|
||||
},
|
||||
{
|
||||
"name": "IDS_CONTENT_CONTEXT_SYSTEM_TRANSLATE",
|
||||
"source": "chrome/app/generated_resources.grd",
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
{
|
||||
"name": "IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION_WARNING",
|
||||
"source": "Do not use this field unless you know exactly what you are doing. Never paste URLs from other people here, they are trying to steal your data. We are not responsible for any damages caused by using a custom server and will not be able to help you.",
|
||||
"message": "Verwende dieses Feld nur, wenn du genau weißt, was du tust. Füge hier niemals URLs von anderen Personen ein – sie versuchen, deine Daten zu stehlen. Wir übernehmen keine Haftung für Schäden, die durch die Nutzung eines eigenen Servers entstehen, und können dir in diesem Fall auch nicht helfen."
|
||||
"message": "Verwende dieses Feld nur, wenn du genau weißt, was du tust. Füge niemals URLs von anderen Personen hier ein – diese versuchen, deine Daten zu stehlen. Wir übernehmen keine Haftung für Schäden, die durch die Nutzung eines eigenen Servers entstehen, und können dir nicht helfen."
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_ARIA_LABEL",
|
||||
@@ -747,7 +747,7 @@
|
||||
{
|
||||
"name": "IDS_SETTINGS_ACCESSIBILITY_TOAST_TOGGLE_DESCRIPTION",
|
||||
"source": "Shows a toast notification when you copy content, such as links and images, or open a new background tab in Frameless mode",
|
||||
"message": "Zeigt eine Toast-Benachrichtigung an, wenn Sie Inhalte wie Links und Bilder kopieren oder im Rahmenlosen Modus einen neuen Hintergrundtab öffnen"
|
||||
"message": "Zeigt eine Toast-Benachrichtigung an, wenn Sie Inhalte wie Links und Bilder kopieren oder im Rahmenloser Modus einen neuen Hintergrundtab öffnen"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_BROWSER_ZEN_MODE",
|
||||
|
||||
@@ -732,12 +732,12 @@
|
||||
{
|
||||
"name": "IDS_TAB_CXMENU_COPY_URL",
|
||||
"source": "Copy URL",
|
||||
"message": "复制链接地址"
|
||||
"message": "复制链接"
|
||||
},
|
||||
{
|
||||
"name": "IDS_TAB_CXMENU_COPY_URLS",
|
||||
"source": "Copy URLs",
|
||||
"message": "复制多个链接地址"
|
||||
"message": "复制多个网址"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_ACCESSIBILITY_TOAST_TOGGLE_TITLE",
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
#include "components/viz/common/switches.h"
|
||||
#include "components/viz/host/gpu_client.h"
|
||||
#include "components/viz/host/host_frame_sink_manager.h"
|
||||
@@ -3860,6 +3861,8 @@ void RenderProcessHostImpl::PropagateBro
|
||||
@@ -3861,6 +3862,8 @@ void RenderProcessHostImpl::PropagateBro
|
||||
switches::kEnableWebGLDraftExtensions,
|
||||
switches::kEnableWebGPUDeveloperFeatures,
|
||||
switches::kFileUrlPathAlias,
|
||||
@@ -335,7 +335,7 @@
|
||||
#include "third_party/skia/include/core/SkImage.h"
|
||||
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
@@ -2982,6 +2982,12 @@
|
||||
@@ -2971,6 +2971,12 @@
|
||||
status: "stable",
|
||||
},
|
||||
{
|
||||
|
||||
@@ -701,7 +701,7 @@
|
||||
// Sanity check for https://crbug.com/781703.
|
||||
--- a/components/helium_services/helium_services_helpers.cc
|
||||
+++ b/components/helium_services/helium_services_helpers.cc
|
||||
@@ -63,6 +63,11 @@ bool ShouldAccessExtensionService(const
|
||||
@@ -83,6 +83,11 @@ bool ShouldAccessExtensionService(const
|
||||
prefs.GetBoolean(prefs::kHeliumExtProxyEnabled);
|
||||
}
|
||||
|
||||
@@ -715,14 +715,14 @@
|
||||
return GetDummyURL();
|
||||
--- a/components/helium_services/helium_services_helpers.h
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -20,6 +20,7 @@ const char kHeliumDummyOrigin[] =
|
||||
|
||||
bool ShouldAccessServices(const PrefService& prefs);
|
||||
@@ -29,6 +29,7 @@ COMPONENT_EXPORT(HELIUM) void ConfigureP
|
||||
COMPONENT_EXPORT(HELIUM) void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
|
||||
+COMPONENT_EXPORT(HELIUM) bool ShouldFetchBangs(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessExtensionService(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetServicesBaseURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetExtensionUpdateURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetWebstoreSnippetURL(const PrefService& prefs, std::string_view id);
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -2355,6 +2355,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
|
||||
@@ -12,20 +12,16 @@
|
||||
|
||||
--- a/components/helium_services/helium_services_helpers.h
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -22,11 +22,13 @@ bool ShouldAccessServices(const PrefServ
|
||||
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldFetchBangs(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessExtensionService(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) bool ShouldAccessUpdateService(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetServicesBaseURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetExtensionUpdateURL(const PrefService& prefs);
|
||||
@@ -35,6 +35,9 @@ COMPONENT_EXPORT(HELIUM) GURL GetExtensi
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetWebstoreSnippetURL(const PrefService& prefs, std::string_view id);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetSpellcheckURL(const PrefService& prefs);
|
||||
|
||||
+COMPONENT_EXPORT(HELIUM) bool ShouldAccessUpdateService(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetBrowserUpdateURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) std::optional<GURL> GetValidUserOverridenURL(std::string_view user_url_);
|
||||
COMPONENT_EXPORT(HELIUM) void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
+
|
||||
} // namespace helium
|
||||
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_HELIUM_SERVICES_HELPERS_H_
|
||||
--- a/components/helium_services/helium_services_helpers.cc
|
||||
+++ b/components/helium_services/helium_services_helpers.cc
|
||||
@@ -6,6 +6,7 @@
|
||||
@@ -65,7 +61,7 @@
|
||||
|
||||
std::optional<GURL> GetValidUserOverridenURL(std::string_view user_url_) {
|
||||
if (user_url_.empty()) {
|
||||
@@ -73,6 +96,11 @@ bool ShouldFetchBangs(const PrefService&
|
||||
@@ -93,6 +116,11 @@ bool ShouldFetchBangs(const PrefService&
|
||||
prefs.GetBoolean(prefs::kHeliumBangsEnabled);
|
||||
}
|
||||
|
||||
@@ -77,7 +73,7 @@
|
||||
GURL GetExtensionUpdateURL(const PrefService& prefs) {
|
||||
if (!ShouldAccessExtensionService(prefs)) {
|
||||
return GetDummyURL();
|
||||
@@ -98,6 +126,24 @@ GURL GetSpellcheckURL(const PrefService&
|
||||
@@ -118,6 +146,24 @@ GURL GetSpellcheckURL(const PrefService&
|
||||
return GetServicesBaseURL(prefs).Resolve("/dict/");
|
||||
}
|
||||
|
||||
@@ -101,7 +97,7 @@
|
||||
+
|
||||
void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer) {
|
||||
registrar.Add(prefs::kHeliumServicesEnabled, observer);
|
||||
ConfigurePrefChangeRegistrarForServices(registrar, observer);
|
||||
--- a/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
@@ -99,6 +99,11 @@
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "components/prefs/pref_service.h"
|
||||
#include "net/base/url_util.h"
|
||||
#include "url/gurl.h"
|
||||
@@ -101,6 +102,12 @@ bool ShouldAccessUpdateService(const Pre
|
||||
@@ -121,6 +122,12 @@ bool ShouldAccessUpdateService(const Pre
|
||||
prefs.GetBoolean(prefs::kHeliumUpdateFetchingEnabled);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
bool ShouldAccessUBlockAssets(const PrefService& prefs) {
|
||||
return ShouldAccessServices(prefs) &&
|
||||
prefs.GetBoolean(prefs::kHeliumUBlockAssetsEnabled);
|
||||
@@ -149,6 +156,14 @@ GURL GetBrowserUpdateURL(const PrefServi
|
||||
@@ -169,6 +176,14 @@ GURL GetBrowserUpdateURL(const PrefServi
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -52,22 +52,16 @@
|
||||
return GetDummyURL();
|
||||
--- a/components/helium_services/helium_services_helpers.h
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -23,6 +23,7 @@ bool ShouldAccessServices(const PrefServ
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldFetchBangs(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessExtensionService(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessUpdateService(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) bool ShouldAccessComponentUpdateService(const PrefService& prefs);
|
||||
@@ -41,6 +41,9 @@ COMPONENT_EXPORT(HELIUM) GURL GetBrowser
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessUBlockAssets(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetServicesBaseURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
|
||||
@@ -30,6 +31,7 @@ COMPONENT_EXPORT(HELIUM) GURL GetExtensi
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetWebstoreSnippetURL(const PrefService& prefs, std::string_view id);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetSpellcheckURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetBrowserUpdateURL(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetComponentUpdateURL(const PrefService* prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetUBlockAssetsURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) std::optional<GURL> GetValidUserOverridenURL(std::string_view user_url_);
|
||||
COMPONENT_EXPORT(HELIUM) void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
|
||||
+COMPONENT_EXPORT(HELIUM) bool ShouldAccessComponentUpdateService(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetComponentUpdateURL(const PrefService* prefs);
|
||||
+
|
||||
} // namespace helium
|
||||
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_HELIUM_SERVICES_HELPERS_H_
|
||||
--- a/chrome/browser/component_updater/chrome_component_updater_configurator.cc
|
||||
+++ b/chrome/browser/component_updater/chrome_component_updater_configurator.cc
|
||||
@@ -26,11 +26,14 @@
|
||||
|
||||
@@ -0,0 +1,135 @@
|
||||
--- a/components/captive_portal/content/BUILD.gn
|
||||
+++ b/components/captive_portal/content/BUILD.gn
|
||||
@@ -33,6 +33,7 @@ source_set("content") {
|
||||
|
||||
deps = [
|
||||
"//components/embedder_support",
|
||||
+ "//components/helium_services",
|
||||
"//content/public/browser",
|
||||
"//third_party/blink/public/common",
|
||||
]
|
||||
--- a/components/captive_portal/content/captive_portal_service.cc
|
||||
+++ b/components/captive_portal/content/captive_portal_service.cc
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "build/build_config.h"
|
||||
#include "components/captive_portal/core/captive_portal_types.h"
|
||||
#include "components/embedder_support/pref_names.h"
|
||||
+#include "components/helium_services/helium_services_helpers.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
#include "content/public/browser/browser_context.h"
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
@@ -63,10 +64,11 @@ CaptivePortalService::CaptivePortalServi
|
||||
const base::TickClock* clock_for_testing,
|
||||
network::mojom::URLLoaderFactory* loader_factory_for_testing)
|
||||
: browser_context_(browser_context),
|
||||
+ pref_service_(pref_service),
|
||||
state_(STATE_IDLE),
|
||||
enabled_(false),
|
||||
last_detection_result_(RESULT_INTERNET_CONNECTED),
|
||||
- test_url_(CaptivePortalDetector::GetDefaultUrl()),
|
||||
+ test_url_(helium::GetConnectivityCheckURL(*pref_service)),
|
||||
tick_clock_for_testing_(clock_for_testing) {
|
||||
network::mojom::URLLoaderFactory* loader_factory;
|
||||
if (loader_factory_for_testing) {
|
||||
@@ -87,6 +89,11 @@ CaptivePortalService::CaptivePortalServi
|
||||
embedder_support::kAlternateErrorPagesEnabled, pref_service,
|
||||
base::BindRepeating(&CaptivePortalService::UpdateEnabledState,
|
||||
base::Unretained(this)));
|
||||
+ helium_services_pref_change_registrar_.Init(pref_service);
|
||||
+ helium::ConfigurePrefChangeRegistrarForServices(
|
||||
+ helium_services_pref_change_registrar_,
|
||||
+ base::BindRepeating(&CaptivePortalService::UpdateTestURL,
|
||||
+ base::Unretained(this)));
|
||||
ResetBackoffEntry(last_detection_result_);
|
||||
|
||||
UpdateEnabledState();
|
||||
@@ -260,6 +267,10 @@ void CaptivePortalService::UpdateEnabled
|
||||
}
|
||||
}
|
||||
|
||||
+void CaptivePortalService::UpdateTestURL() {
|
||||
+ test_url_ = helium::GetConnectivityCheckURL(*pref_service_);
|
||||
+}
|
||||
+
|
||||
base::TimeTicks CaptivePortalService::GetCurrentTimeTicks() const {
|
||||
if (tick_clock_for_testing_)
|
||||
return tick_clock_for_testing_->NowTicks();
|
||||
--- a/components/captive_portal/content/captive_portal_service.h
|
||||
+++ b/components/captive_portal/content/captive_portal_service.h
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "components/captive_portal/core/captive_portal_detector.h"
|
||||
#include "components/captive_portal/core/captive_portal_types.h"
|
||||
#include "components/keyed_service/core/keyed_service.h"
|
||||
+#include "components/prefs/pref_change_registrar.h"
|
||||
#include "components/prefs/pref_member.h"
|
||||
#include "net/base/backoff_entry.h"
|
||||
#include "services/network/public/cpp/shared_url_loader_factory.h"
|
||||
@@ -33,6 +34,7 @@ class URLLoaderFactory;
|
||||
class Browser;
|
||||
class CaptivePortalBrowserTest;
|
||||
class HttpsUpgradesBrowserTest;
|
||||
+class PrefService;
|
||||
|
||||
namespace captive_portal {
|
||||
|
||||
@@ -164,6 +166,9 @@ class CaptivePortalService : public Keye
|
||||
// Android, since it lacks the Browser class.
|
||||
void UpdateEnabledState();
|
||||
|
||||
+ // Updates |test_url_| from the active Helium services settings.
|
||||
+ void UpdateTestURL();
|
||||
+
|
||||
base::TimeTicks GetCurrentTimeTicks() const;
|
||||
|
||||
bool DetectionInProgress() const;
|
||||
@@ -180,6 +185,10 @@ class CaptivePortalService : public Keye
|
||||
// The BrowserContext that owns this CaptivePortalService.
|
||||
const raw_ptr<content::BrowserContext> browser_context_;
|
||||
|
||||
+ // Owned by the same BrowserContext/Profile that owns this KeyedService and
|
||||
+ // outlives it.
|
||||
+ const raw_ptr<PrefService> pref_service_;
|
||||
+
|
||||
State state_;
|
||||
|
||||
scoped_refptr<network::SharedURLLoaderFactory> shared_url_loader_factory_;
|
||||
@@ -211,6 +220,8 @@ class CaptivePortalService : public Keye
|
||||
// URL that returns a 204 response code when connected to the Internet.
|
||||
GURL test_url_;
|
||||
|
||||
+ PrefChangeRegistrar helium_services_pref_change_registrar_;
|
||||
+
|
||||
// The pref member for whether navigation errors should be resolved with a web
|
||||
// service. Actually called "alternate_error_pages", since it's also used for
|
||||
// the Link Doctor.
|
||||
--- a/components/helium_services/helium_services_helpers.cc
|
||||
+++ b/components/helium_services/helium_services_helpers.cc
|
||||
@@ -56,6 +56,18 @@ bool ShouldAccessServices(const PrefServ
|
||||
return prefs.GetBoolean(prefs::kHeliumServicesEnabled);
|
||||
}
|
||||
|
||||
+GURL GetConnectivityCheckURL(const PrefService& prefs) {
|
||||
+ if (!ShouldAccessServices(prefs)) {
|
||||
+ return GetDummyURL();
|
||||
+ }
|
||||
+
|
||||
+ GURL::Replacements replacements;
|
||||
+ replacements.SetSchemeStr(url::kHttpScheme);
|
||||
+ return GetServicesBaseURL(prefs)
|
||||
+ .ReplaceComponents(replacements)
|
||||
+ .Resolve("/connectivitycheck");
|
||||
+}
|
||||
+
|
||||
void ConfigurePrefChangeRegistrarForServices(
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer) {
|
||||
registrar.Add(prefs::kHeliumServicesEnabled, observer);
|
||||
--- a/components/helium_services/helium_services_helpers.h
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -22,6 +22,7 @@ bool ShouldAccessServices(const PrefServ
|
||||
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetServicesBaseURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetConnectivityCheckURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) std::optional<GURL> GetValidUserOverridenURL(std::string_view user_url_);
|
||||
COMPONENT_EXPORT(HELIUM) void ConfigurePrefChangeRegistrarForServices(
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
@@ -498,7 +498,7 @@
|
||||
|
||||
// Changes in the profile name.
|
||||
pref_change_registrar_.Add(
|
||||
@@ -1709,6 +1714,8 @@ void ProfileImpl::UpdateAvatarInStorage(
|
||||
@@ -1713,6 +1718,8 @@ void ProfileImpl::UpdateAvatarInStorage(
|
||||
GetPrefs()->GetBoolean(prefs::kProfileUsingDefaultAvatar));
|
||||
entry->SetIsUsingGAIAPicture(
|
||||
GetPrefs()->GetBoolean(prefs::kProfileUsingGAIAAvatar));
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -116,7 +116,7 @@ BASE_FEATURE(kExtensionsCollapseMainMenu
|
||||
@@ -98,7 +98,7 @@ BASE_FEATURE(kExtensionsCollapseMainMenu
|
||||
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC)
|
||||
// Shows an infobar on PDFs offering to become the default PDF viewer if Chrome
|
||||
// isn't the default already.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -250,13 +250,7 @@ BASE_FEATURE(kPasswordSaveUpdateDropdown
|
||||
@@ -232,13 +232,7 @@ BASE_FEATURE(kPasswordSaveUpdateDropdown
|
||||
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -403,7 +403,7 @@ BASE_FEATURE(kTabsFromOtherDevicesSidePa
|
||||
@@ -385,7 +385,7 @@ BASE_FEATURE(kTabsFromOtherDevicesSidePa
|
||||
BASE_FEATURE(kTabsFromOtherDevicesSidePanelPinnedByDefault,
|
||||
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/components/search/ntp_features.cc
|
||||
+++ b/components/search/ntp_features.cc
|
||||
@@ -285,7 +285,7 @@ BASE_FEATURE(kNtpShortcutsRedesign, base
|
||||
|
||||
// If enabled, the bookmark bar may be auto-removed on the NTP and new
|
||||
// visibility settings are added.
|
||||
-BASE_FEATURE(kNtpSimplificationBookmarkBar, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+BASE_FEATURE(kNtpSimplificationBookmarkBar, base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
// If enabled, the bookmark bar time interval and number of times it's shown on
|
||||
// the NTP before auto-hiding is decreased for testing.
|
||||
@@ -1,8 +1,8 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -64,8 +64,8 @@ BASE_FEATURE_PARAM(bool,
|
||||
"back-forward",
|
||||
true);
|
||||
@@ -54,8 +54,8 @@ BASE_FEATURE(kInfoBarInlineLinks, base::
|
||||
BASE_FEATURE(kTabStripDeclutter, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
BASE_FEATURE(kToolbarGlowUp, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
BASE_FEATURE(kMenuSimplification, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
-BASE_FEATURE(kTabGroupColorRefresh, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
-BASE_FEATURE(kWebuiRefresh2026, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -230,13 +230,7 @@ bool IsTabGroupHoverCardsEnabled() {
|
||||
@@ -212,13 +212,7 @@ bool IsTabGroupHoverCardsEnabled() {
|
||||
|
||||
// Enables preview images in tab-hover cards.
|
||||
// https://crbug.com/41439486
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -13186,11 +13186,496 @@ const FeatureEntry kFeatureEntries[] = {
|
||||
@@ -13168,11 +13168,496 @@ const FeatureEntry kFeatureEntries[] = {
|
||||
// AboutFlagsHistogramTest unit test to verify this process).
|
||||
};
|
||||
|
||||
@@ -498,7 +498,7 @@
|
||||
FlagsStateSingleton(const FlagsStateSingleton&) = delete;
|
||||
FlagsStateSingleton& operator=(const FlagsStateSingleton&) = delete;
|
||||
~FlagsStateSingleton() override = default;
|
||||
@@ -13209,7 +13694,7 @@ class FlagsStateSingleton : public flags
|
||||
@@ -13191,7 +13676,7 @@ class FlagsStateSingleton : public flags
|
||||
|
||||
void RestoreDefaultState() {
|
||||
flags_state_ =
|
||||
@@ -507,7 +507,7 @@
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -13542,7 +14027,7 @@ base::span<const FeatureEntry> GetFeatur
|
||||
@@ -13524,7 +14009,7 @@ base::span<const FeatureEntry> GetFeatur
|
||||
!entries_for_testing->empty()) {
|
||||
return *entries_for_testing;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#endif // USE_AURA
|
||||
|
||||
#if defined(USE_AURA)
|
||||
@@ -4705,11 +4705,13 @@ const FeatureEntry::FeatureVariation kTo
|
||||
@@ -4695,11 +4695,13 @@ const FeatureEntry::FeatureVariation kCa
|
||||
// calculate and verify checksum.
|
||||
//
|
||||
// When adding a new choice, add it to the end of the list.
|
||||
|
||||
@@ -980,7 +980,7 @@
|
||||
#include "content/browser/interest_group/ad_auction_headers_util.h"
|
||||
#include "content/browser/loader/browser_initiated_resource_request.h"
|
||||
#include "content/browser/loader/cached_navigation_url_loader.h"
|
||||
@@ -9428,6 +9429,22 @@ void NavigationRequest::ReadyToCommitNav
|
||||
@@ -9426,6 +9427,22 @@ void NavigationRequest::ReadyToCommitNav
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1098,7 +1098,7 @@
|
||||
bool is_srcdoc = common_params->url.IsAboutSrcdoc();
|
||||
if (is_srcdoc) {
|
||||
// TODO(wjmaclean): initialize this in NavigationRequest's constructor
|
||||
@@ -16402,6 +16418,15 @@ bool RenderFrameHostImpl::DidCommitNavig
|
||||
@@ -16400,6 +16416,15 @@ bool RenderFrameHostImpl::DidCommitNavig
|
||||
document_associated_data_->owned_page()->set_last_main_document_source_id(
|
||||
ukm::ConvertToSourceId(navigation_request->GetNavigationId(),
|
||||
ukm::SourceIdType::NAVIGATION_ID));
|
||||
|
||||
@@ -608,7 +608,7 @@
|
||||
+#endif // CHROME_BROWSER_UI_WEBUI_ONBOARDING_ONBOARDING_HANDLER_H_
|
||||
--- a/components/helium_services/helium_services_helpers.cc
|
||||
+++ b/components/helium_services/helium_services_helpers.cc
|
||||
@@ -53,12 +53,14 @@ GURL GetDummyURL() {
|
||||
@@ -53,7 +53,8 @@ GURL GetDummyURL() {
|
||||
}
|
||||
|
||||
bool ShouldAccessServices(const PrefService& prefs) {
|
||||
@@ -617,13 +617,15 @@
|
||||
+ prefs.GetBoolean(prefs::kHeliumServicesConsented);
|
||||
}
|
||||
|
||||
void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
GURL GetConnectivityCheckURL(const PrefService& prefs) {
|
||||
@@ -71,6 +72,7 @@ GURL GetConnectivityCheckURL(const PrefS
|
||||
void ConfigurePrefChangeRegistrarForServices(
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer) {
|
||||
registrar.Add(prefs::kHeliumServicesEnabled, observer);
|
||||
+ registrar.Add(prefs::kHeliumServicesConsented, observer);
|
||||
registrar.Add(prefs::kHeliumServicesOrigin, observer);
|
||||
registrar.Add(prefs::kHeliumSchemaVersion, observer);
|
||||
registrar.Add(pref_name, observer);
|
||||
}
|
||||
--- a/chrome/browser/ui/incognito_allowed_url.cc
|
||||
+++ b/chrome/browser/ui/incognito_allowed_url.cc
|
||||
@@ -52,7 +52,8 @@ bool IsHostAllowedInIncognito(const GURL
|
||||
|
||||
@@ -257,8 +257,8 @@
|
||||
#include "components/helium_services/pref_names.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
#include "net/base/url_util.h"
|
||||
@@ -57,6 +58,28 @@ bool ShouldAccessServices(const PrefServ
|
||||
prefs.GetBoolean(prefs::kHeliumServicesConsented);
|
||||
@@ -77,6 +78,28 @@ void ConfigurePrefChangeRegistrarForServ
|
||||
registrar.Add(prefs::kHeliumSchemaVersion, observer);
|
||||
}
|
||||
|
||||
+bool ShouldAccessExtensionService(const PrefService& prefs) {
|
||||
@@ -285,21 +285,21 @@
|
||||
+
|
||||
void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer) {
|
||||
registrar.Add(prefs::kHeliumServicesEnabled, observer);
|
||||
ConfigurePrefChangeRegistrarForServices(registrar, observer);
|
||||
--- a/components/helium_services/helium_services_helpers.h
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -20,8 +20,11 @@ const char kHeliumDummyOrigin[] =
|
||||
|
||||
bool ShouldAccessServices(const PrefService& prefs);
|
||||
|
||||
+COMPONENT_EXPORT(HELIUM) bool ShouldAccessExtensionService(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetServicesBaseURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetExtensionUpdateURL(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetWebstoreSnippetURL(const PrefService& prefs, std::string_view id);
|
||||
COMPONENT_EXPORT(HELIUM) std::optional<GURL> GetValidUserOverridenURL(std::string_view user_url_);
|
||||
@@ -28,6 +28,11 @@ COMPONENT_EXPORT(HELIUM) void ConfigureP
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
COMPONENT_EXPORT(HELIUM) void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
+
|
||||
+COMPONENT_EXPORT(HELIUM) bool ShouldAccessExtensionService(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetExtensionUpdateURL(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetWebstoreSnippetURL(const PrefService& prefs, std::string_view id);
|
||||
+
|
||||
} // namespace helium
|
||||
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_HELIUM_SERVICES_HELPERS_H_
|
||||
--- a/chrome/browser/extensions/BUILD.gn
|
||||
+++ b/chrome/browser/extensions/BUILD.gn
|
||||
@@ -581,6 +581,7 @@ source_set("extensions") {
|
||||
@@ -399,7 +399,7 @@
|
||||
}
|
||||
|
||||
void ExtensionUpdater::Stop() {
|
||||
@@ -554,7 +563,7 @@ void ExtensionUpdater::CheckNow(CheckPar
|
||||
@@ -550,7 +559,7 @@ void ExtensionUpdater::CheckNow(CheckPar
|
||||
// OnExtensionDownloadFinished for each extension that was checked.
|
||||
downloader_->StartAllPending(extension_cache_);
|
||||
|
||||
@@ -408,7 +408,7 @@
|
||||
update_service_->StartUpdateCheck(
|
||||
update_check_params, params.update_found_callback,
|
||||
base::BindOnce(&ExtensionUpdater::OnUpdateServiceFinished,
|
||||
@@ -777,8 +786,8 @@ void ExtensionUpdater::CleanUpCrxFileIfN
|
||||
@@ -773,8 +782,8 @@ void ExtensionUpdater::CleanUpCrxFileIfN
|
||||
bool ExtensionUpdater::CanUseUpdateService(
|
||||
const Extension* extension,
|
||||
const PendingExtensionInfo* info) const {
|
||||
@@ -418,7 +418,7 @@
|
||||
+ return false;
|
||||
}
|
||||
|
||||
// UpdateService can only update extensions that have been installed on the
|
||||
// UpdateService can only update extensions from the store. If `update_url`
|
||||
--- a/extensions/browser/webstore_installer.cc
|
||||
+++ b/extensions/browser/webstore_installer.cc
|
||||
@@ -28,8 +28,10 @@
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
--- a/components/helium_services/helium_services_helpers.cc
|
||||
+++ b/components/helium_services/helium_services_helpers.cc
|
||||
@@ -63,6 +63,11 @@ bool ShouldAccessExtensionService(const
|
||||
@@ -83,6 +83,11 @@ bool ShouldAccessExtensionService(const
|
||||
prefs.GetBoolean(prefs::kHeliumExtProxyEnabled);
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
bool ShouldFetchBangs(const PrefService& prefs) {
|
||||
return ShouldAccessServices(prefs) &&
|
||||
prefs.GetBoolean(prefs::kHeliumBangsEnabled);
|
||||
@@ -85,6 +90,14 @@ GURL GetWebstoreSnippetURL(const PrefSer
|
||||
@@ -105,6 +110,14 @@ GURL GetWebstoreSnippetURL(const PrefSer
|
||||
base::StringPrintf("/ext/cws_snippet?id=%s", id));
|
||||
}
|
||||
|
||||
@@ -71,17 +71,17 @@
|
||||
+
|
||||
void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer) {
|
||||
registrar.Add(prefs::kHeliumServicesEnabled, observer);
|
||||
ConfigurePrefChangeRegistrarForServices(registrar, observer);
|
||||
--- a/components/helium_services/helium_services_helpers.h
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -26,6 +26,7 @@ COMPONENT_EXPORT(HELIUM) GURL GetService
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
|
||||
@@ -33,6 +33,7 @@ COMPONENT_EXPORT(HELIUM) bool ShouldFetc
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessExtensionService(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetExtensionUpdateURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetWebstoreSnippetURL(const PrefService& prefs, std::string_view id);
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetSpellcheckURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) std::optional<GURL> GetValidUserOverridenURL(std::string_view user_url_);
|
||||
COMPONENT_EXPORT(HELIUM) void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
|
||||
} // namespace helium
|
||||
|
||||
--- a/components/helium_services/pref_names.h
|
||||
+++ b/components/helium_services/pref_names.h
|
||||
@@ -33,6 +33,9 @@ inline constexpr char kHeliumExtProxyEna
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
|
||||
+++ b/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
|
||||
@@ -199,6 +199,8 @@
|
||||
@@ -197,6 +197,8 @@
|
||||
"keyword": "kagi.com",
|
||||
"search_url": "https://kagi.com/search?q={searchTerms}",
|
||||
"suggest_url": "https://kagisuggest.com/api/autosuggest?q={searchTerms}",
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
"base_builtin_resource_id": "SEARCH_ENGINE_GOOGLE",
|
||||
"search_url": "https://www.google.com/search?q={searchTerms}",
|
||||
"suggest_url": "https://www.google.com/complete/search?client=chrome&q={searchTerms}",
|
||||
@@ -200,7 +200,7 @@
|
||||
@@ -198,7 +198,7 @@
|
||||
"search_url": "https://kagi.com/search?q={searchTerms}",
|
||||
"suggest_url": "https://kagisuggest.com/api/autosuggest?q={searchTerms}",
|
||||
"new_tab_url": "https://kagi.com/",
|
||||
@@ -45,7 +45,7 @@
|
||||
"base_builtin_resource_id": "SEARCH_ENGINE_KAGI",
|
||||
"type": "SEARCH_ENGINE_KAGI",
|
||||
"id": 115
|
||||
@@ -342,7 +342,7 @@
|
||||
@@ -340,7 +340,7 @@
|
||||
"qwant": {
|
||||
"name": "Qwant",
|
||||
"keyword": "qwant.com",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
|
||||
+++ b/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
|
||||
@@ -171,31 +171,16 @@
|
||||
@@ -171,31 +171,14 @@
|
||||
"id": 114
|
||||
},
|
||||
|
||||
@@ -32,8 +32,6 @@
|
||||
- "send_x_geo_header": true,
|
||||
+ "search_url": "https://www.google.com/search?q={searchTerms}",
|
||||
+ "suggest_url": "https://www.google.com/complete/search?client=chrome&q={searchTerms}",
|
||||
+ "image_url": "https://www.google.com/searchbyimage/upload",
|
||||
+ "image_url_post_params": "encoded_image={google:imageThumbnail}",
|
||||
+ "type": "SEARCH_ENGINE_OTHER",
|
||||
"id": 1
|
||||
},
|
||||
|
||||
@@ -471,7 +471,7 @@
|
||||
+}
|
||||
--- /dev/null
|
||||
+++ b/components/helium_services/helium_services_helpers.cc
|
||||
@@ -0,0 +1,67 @@
|
||||
@@ -0,0 +1,72 @@
|
||||
+// Copyright 2025 The Helium Authors
|
||||
+// You can use, redistribute, and/or modify this source code under
|
||||
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
@@ -530,18 +530,23 @@
|
||||
+ return prefs.GetBoolean(prefs::kHeliumServicesEnabled);
|
||||
+}
|
||||
+
|
||||
+void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
+void ConfigurePrefChangeRegistrarForServices(
|
||||
+ PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer) {
|
||||
+ registrar.Add(prefs::kHeliumServicesEnabled, observer);
|
||||
+ registrar.Add(prefs::kHeliumServicesOrigin, observer);
|
||||
+ registrar.Add(prefs::kHeliumSchemaVersion, observer);
|
||||
+}
|
||||
+
|
||||
+void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
+ PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer) {
|
||||
+ ConfigurePrefChangeRegistrarForServices(registrar, observer);
|
||||
+ registrar.Add(pref_name, observer);
|
||||
+}
|
||||
+
|
||||
+} // namespace helium
|
||||
--- /dev/null
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -0,0 +1,30 @@
|
||||
@@ -0,0 +1,32 @@
|
||||
+// Copyright 2025 The Helium Authors
|
||||
+// You can use, redistribute, and/or modify this source code under
|
||||
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
@@ -567,6 +572,8 @@
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetServicesBaseURL(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
|
||||
+COMPONENT_EXPORT(HELIUM) std::optional<GURL> GetValidUserOverridenURL(std::string_view user_url_);
|
||||
+COMPONENT_EXPORT(HELIUM) void ConfigurePrefChangeRegistrarForServices(
|
||||
+ PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
+COMPONENT_EXPORT(HELIUM) void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
+ PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
+} // namespace helium
|
||||
@@ -683,7 +690,7 @@
|
||||
+#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SERVICES_SCHEMA_HANDLER_H_
|
||||
--- /dev/null
|
||||
+++ b/components/helium_services/schema.cc
|
||||
@@ -0,0 +1,40 @@
|
||||
@@ -0,0 +1,46 @@
|
||||
+// Copyright 2025 The Helium Authors
|
||||
+// You can use, redistribute, and/or modify this source code under
|
||||
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
@@ -717,7 +724,13 @@
|
||||
+ 1,
|
||||
+ "Automatic component updates are now available. They're managed by the same toggle that enables automatic browser updates.\n"
|
||||
+ "From now on, you'll be notified about major changes to Helium services. Even though these notifications are extremely rare, you can choose to ignore them and accept all future changes automatically."
|
||||
+ }
|
||||
+ },
|
||||
+ {
|
||||
+ 2,
|
||||
+ "Helium now checks whether the browser is behind a captive portal by sending an empty connectivity request "
|
||||
+ "to the configured Helium services origin when captive portal detection runs.\nThis is tied to the main "
|
||||
+ "Helium Services connection setting."
|
||||
+ },
|
||||
+ });
|
||||
+
|
||||
+ return kHeliumSchemaChangelog;
|
||||
@@ -740,7 +753,7 @@
|
||||
+
|
||||
+namespace helium {
|
||||
+
|
||||
+inline constexpr int kHeliumCurrentSchemaVersion = 1;
|
||||
+inline constexpr int kHeliumCurrentSchemaVersion = 2;
|
||||
+
|
||||
+using ServicesChangelog = const base::
|
||||
+ fixed_flat_map<int, std::string_view, kHeliumCurrentSchemaVersion>;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/chromium_strings.grd
|
||||
+++ b/chrome/app/chromium_strings.grd
|
||||
@@ -1062,6 +1062,10 @@ Chromium is unable to recover your setti
|
||||
@@ -1056,6 +1056,10 @@ Chromium is unable to recover your setti
|
||||
Customize and control Chromium. Update is available.
|
||||
</message>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<message name="IDS_APPMENU_TOOLTIP_ALERT" desc="The tooltip to show for the browser menu when a non-update alert is displayed">
|
||||
Customize and control Chromium. Something needs your attention - click for details.
|
||||
</message>
|
||||
@@ -1794,6 +1798,11 @@ Chromium is unable to recover your setti
|
||||
@@ -1788,6 +1792,11 @@ Chromium is unable to recover your setti
|
||||
Chromium couldn't update to the latest version, so you're missing out on new features and security fixes.
|
||||
</message>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/components/helium_services/helium_services_helpers.cc
|
||||
+++ b/components/helium_services/helium_services_helpers.cc
|
||||
@@ -101,6 +101,11 @@ bool ShouldAccessUpdateService(const Pre
|
||||
@@ -121,6 +121,11 @@ bool ShouldAccessUpdateService(const Pre
|
||||
prefs.GetBoolean(prefs::kHeliumUpdateFetchingEnabled);
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
GURL GetExtensionUpdateURL(const PrefService& prefs) {
|
||||
if (!ShouldAccessExtensionService(prefs)) {
|
||||
return GetDummyURL();
|
||||
@@ -144,6 +149,14 @@ GURL GetBrowserUpdateURL(const PrefServi
|
||||
@@ -164,6 +169,14 @@ GURL GetBrowserUpdateURL(const PrefServi
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -26,24 +26,19 @@
|
||||
+
|
||||
void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer) {
|
||||
registrar.Add(prefs::kHeliumServicesEnabled, observer);
|
||||
ConfigurePrefChangeRegistrarForServices(registrar, observer);
|
||||
--- a/components/helium_services/helium_services_helpers.h
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -23,12 +23,14 @@ bool ShouldAccessServices(const PrefServ
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldFetchBangs(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessExtensionService(const PrefService& prefs);
|
||||
@@ -38,6 +38,9 @@ COMPONENT_EXPORT(HELIUM) GURL GetSpellch
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessUpdateService(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) bool ShouldAccessUBlockAssets(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetServicesBaseURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetExtensionUpdateURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetWebstoreSnippetURL(const PrefService& prefs, std::string_view id);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetSpellcheckURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetBrowserUpdateURL(const PrefService& prefs);
|
||||
|
||||
+COMPONENT_EXPORT(HELIUM) bool ShouldAccessUBlockAssets(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetUBlockAssetsURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) std::optional<GURL> GetValidUserOverridenURL(std::string_view user_url_);
|
||||
COMPONENT_EXPORT(HELIUM) void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
+
|
||||
} // namespace helium
|
||||
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_HELIUM_SERVICES_HELPERS_H_
|
||||
--- a/components/helium_services/pref_names.h
|
||||
+++ b/components/helium_services/pref_names.h
|
||||
@@ -39,6 +39,8 @@ inline constexpr char kHeliumUpdateFetch
|
||||
|
||||
@@ -1,47 +1,164 @@
|
||||
--- a/chrome/browser/ui/views/frame/custom_floating_corner.cc
|
||||
+++ b/chrome/browser/ui/views/frame/custom_floating_corner.cc
|
||||
@@ -9,8 +9,8 @@
|
||||
|
||||
#include "base/i18n/rtl.h"
|
||||
#include "chrome/browser/ui/color/chrome_color_provider_utils.h"
|
||||
-#include "chrome/browser/ui/layout_constants.h"
|
||||
#include "chrome/browser/ui/views/frame/browser_view.h"
|
||||
+#include "chrome/browser/ui/views/helium/frame_corner_radius.h"
|
||||
#include "third_party/skia/include/core/SkPathBuilder.h"
|
||||
#include "ui/base/metadata/metadata_impl_macros.h"
|
||||
#include "ui/base/ui_base_features.h"
|
||||
@@ -19,7 +19,6 @@
|
||||
#include "ui/gfx/color_utils.h"
|
||||
#include "ui/gfx/scoped_canvas.h"
|
||||
#include "ui/views/controls/separator.h"
|
||||
-#include "ui/views/layout/layout_provider.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -48,13 +47,11 @@ CustomFloatingCorner::CornerOrientation
|
||||
CustomFloatingCorner::CustomFloatingCorner(
|
||||
BrowserView& browser_view,
|
||||
CornerOrientation orientation,
|
||||
- views::ShapeContextTokens corner_radius_token,
|
||||
ColorChoice color,
|
||||
std::optional<ui::ColorId> stroke_color,
|
||||
bool is_vertical_window_edge)
|
||||
: CustomCorners(browser_view),
|
||||
orientation_(orientation),
|
||||
- corner_radius_token_(corner_radius_token),
|
||||
color_(color),
|
||||
stroke_color_(stroke_color),
|
||||
is_vertical_window_edge_(is_vertical_window_edge) {
|
||||
@@ -82,16 +79,6 @@ void CustomFloatingCorner::SetOrientatio
|
||||
SchedulePaint();
|
||||
}
|
||||
|
||||
-void CustomFloatingCorner::SetCornerRadius(
|
||||
- views::ShapeContextTokens corner_radius_token) {
|
||||
- if (corner_radius_token == corner_radius_token_) {
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
- corner_radius_token_ = corner_radius_token;
|
||||
- PreferredSizeChanged();
|
||||
-}
|
||||
-
|
||||
void CustomFloatingCorner::SetStroke(std::optional<ui::ColorId> stroke_color,
|
||||
bool is_vertical_window_edge) {
|
||||
if (stroke_color_ == stroke_color &&
|
||||
@@ -114,19 +101,8 @@ void CustomFloatingCorner::SetStroke(std
|
||||
|
||||
gfx::Size CustomFloatingCorner::CalculatePreferredSize(
|
||||
const views::SizeBounds& available_size) const {
|
||||
- // This can return nullptr when there is no Widget (for context, see
|
||||
- // http://crbug.com/40178332). The nullptr dereference does not always
|
||||
- // crash due to compiler optimizations, so CHECKing here ensures we crash.
|
||||
- CHECK(GetLayoutProvider());
|
||||
- const float corner_radius =
|
||||
- GetLayoutProvider()->GetCornerRadiusMetric(corner_radius_token_);
|
||||
- const float horizontal_size =
|
||||
- corner_radius + (stroke_color_ ? views::Separator::kThickness : 0);
|
||||
- const float vertical_size =
|
||||
- corner_radius + (stroke_color_ && !is_vertical_window_edge_
|
||||
- ? views::Separator::kThickness
|
||||
- : 0);
|
||||
- return gfx::Size(horizontal_size, vertical_size);
|
||||
+ const int corner_radius = GetGenericFrameRadius();
|
||||
+ return gfx::Size(corner_radius, corner_radius);
|
||||
}
|
||||
|
||||
void CustomFloatingCorner::OnPaint(gfx::Canvas* canvas) {
|
||||
@@ -136,9 +112,8 @@ void CustomFloatingCorner::OnPaint(gfx::
|
||||
gfx::ScopedCanvas scoped(canvas);
|
||||
|
||||
// This assumes that the view has gotten its preferred size, however, it will
|
||||
- // scale gracefully if it is not that size. The view should be the preferred
|
||||
- // corner radius in each dimension, plus the stroke thickness if there is a
|
||||
- // stroke.
|
||||
+ // scale gracefully if it is not that size. The view is the outer corner
|
||||
+ // radius; the stroked arc is inset by the separator thickness.
|
||||
const bool has_stroke = stroke_color_.has_value();
|
||||
const bool extend_vertical = has_stroke && !is_vertical_window_edge_;
|
||||
const SkVector corner_radius(
|
||||
--- a/chrome/browser/ui/views/frame/custom_floating_corner.h
|
||||
+++ b/chrome/browser/ui/views/frame/custom_floating_corner.h
|
||||
@@ -16,7 +16,6 @@
|
||||
#include "ui/base/metadata/metadata_header_macros.h"
|
||||
#include "ui/color/color_id.h"
|
||||
#include "ui/views/background.h"
|
||||
-#include "ui/views/layout/layout_provider.h"
|
||||
#include "ui/views/layout/layout_types.h"
|
||||
#include "ui/views/view.h"
|
||||
|
||||
@@ -39,7 +38,6 @@ class CustomFloatingCorner : public view
|
||||
|
||||
CustomFloatingCorner(BrowserView& browser_view,
|
||||
CornerOrientation orientation,
|
||||
- views::ShapeContextTokens corner_radius_token,
|
||||
ColorChoice color,
|
||||
std::optional<ui::ColorId> stroke_color = std::nullopt,
|
||||
bool is_vertical_window_edge = false);
|
||||
@@ -51,9 +49,6 @@ class CustomFloatingCorner : public view
|
||||
// Sets the corner orientation.
|
||||
void SetOrientation(CornerOrientation orientation);
|
||||
|
||||
- // Set the corner radius.
|
||||
- void SetCornerRadius(views::ShapeContextTokens corner_radius_token);
|
||||
-
|
||||
// Sets a stroke, or no stroke (std::nullopt). If `is_vertical_window_edge` is
|
||||
// true, the stroke ends outside the vertical bounds of the corner.
|
||||
void SetStroke(std::optional<ui::ColorId> stroke_color,
|
||||
@@ -74,7 +69,6 @@ class CustomFloatingCorner : public view
|
||||
void SchedulePaintHost() override;
|
||||
|
||||
CornerOrientation orientation_;
|
||||
- views::ShapeContextTokens corner_radius_token_;
|
||||
ColorChoice color_;
|
||||
std::optional<ui::ColorId> stroke_color_;
|
||||
bool is_vertical_window_edge_ = false;
|
||||
--- a/chrome/browser/ui/views/frame/multi_contents_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/multi_contents_view.cc
|
||||
@@ -23,7 +23,6 @@
|
||||
#include "chrome/browser/ui/views/frame/contents_container_view.h"
|
||||
#include "chrome/browser/ui/views/frame/contents_separator.h"
|
||||
#include "chrome/browser/ui/views/frame/contents_web_view.h"
|
||||
-#include "chrome/browser/ui/views/frame/custom_floating_corner.h"
|
||||
#include "chrome/browser/ui/views/frame/multi_contents_background_view.h"
|
||||
#include "chrome/browser/ui/views/frame/multi_contents_drop_target_view.h"
|
||||
#include "chrome/browser/ui/views/frame/multi_contents_resize_area.h"
|
||||
@@ -62,7 +61,6 @@ void MultiContentsView::ContentsSeparato
|
||||
top_separator = nullptr;
|
||||
@@ -63,6 +63,7 @@ void MultiContentsView::ContentsSeparato
|
||||
leading_separator = nullptr;
|
||||
trailing_separator = nullptr;
|
||||
- corner_separator = nullptr;
|
||||
corner_separator = nullptr;
|
||||
+ trailing_corner_separator = nullptr;
|
||||
leading_side_chrome_attached = false;
|
||||
trailing_side_chrome_attached = false;
|
||||
}
|
||||
@@ -117,15 +115,6 @@ MultiContentsView::MultiContentsView(
|
||||
contents_separators_.trailing_separator->SetProperty(
|
||||
views::kElementIdentifierKey, kContentsSeparatorTrailingEdgeElementId);
|
||||
|
||||
- contents_separators_.corner_separator =
|
||||
- AddChildView(std::make_unique<CustomFloatingCorner>(
|
||||
- *browser_view_, CustomFloatingCorner::CornerOrientation::kTopLeading,
|
||||
@@ -120,12 +121,17 @@ MultiContentsView::MultiContentsView(
|
||||
contents_separators_.corner_separator =
|
||||
AddChildView(std::make_unique<CustomFloatingCorner>(
|
||||
*browser_view_, CustomFloatingCorner::CornerOrientation::kTopLeading,
|
||||
- views::ShapeContextTokens::kContentSeparatorRadius,
|
||||
- CustomFloatingCorner::ToolbarTheme(),
|
||||
- kColorToolbarContentAreaSeparator));
|
||||
- contents_separators_.corner_separator->SetProperty(
|
||||
- views::kElementIdentifierKey, kContentsSeparatorTopCornerElementId);
|
||||
-
|
||||
CustomFloatingCorner::ToolbarTheme(),
|
||||
kColorToolbarContentAreaSeparator));
|
||||
contents_separators_.corner_separator->SetProperty(
|
||||
views::kElementIdentifierKey, kContentsSeparatorTopCornerElementId);
|
||||
|
||||
+ contents_separators_.trailing_corner_separator =
|
||||
+ AddChildView(std::make_unique<CustomFloatingCorner>(
|
||||
+ *browser_view_, CustomFloatingCorner::CornerOrientation::kTopTrailing,
|
||||
+ CustomFloatingCorner::ToolbarTheme(),
|
||||
+ kColorToolbarContentAreaSeparator));
|
||||
+
|
||||
for (auto* contents_container_view : contents_container_views_) {
|
||||
auto& view_map = container_focusable_map_[contents_container_view];
|
||||
|
||||
@@ -662,8 +651,6 @@ gfx::Rect MultiContentsView::CalculateSe
|
||||
@@ -664,6 +670,9 @@ gfx::Rect MultiContentsView::CalculateSe
|
||||
false, gfx::Rect());
|
||||
child_layouts.emplace_back(contents_separators_.trailing_separator.get(),
|
||||
child_layouts.emplace_back(contents_separators_.corner_separator.get(),
|
||||
false, gfx::Rect());
|
||||
- child_layouts.emplace_back(contents_separators_.corner_separator.get(),
|
||||
- false, gfx::Rect());
|
||||
+ child_layouts.emplace_back(
|
||||
+ contents_separators_.trailing_corner_separator.get(), false,
|
||||
+ gfx::Rect());
|
||||
return available_space;
|
||||
}
|
||||
|
||||
@@ -680,6 +667,7 @@ gfx::Rect MultiContentsView::CalculateSe
|
||||
@@ -680,6 +689,7 @@ gfx::Rect MultiContentsView::CalculateSe
|
||||
gfx::Rect(available_space.origin(), {width, separator_height}));
|
||||
|
||||
const bool should_show_leading =
|
||||
@@ -49,7 +166,7 @@
|
||||
drop_target_view_->side() == MultiContentsDropTargetView::DropSide::START;
|
||||
const int leading_separator_width =
|
||||
should_show_leading
|
||||
@@ -690,6 +678,7 @@ gfx::Rect MultiContentsView::CalculateSe
|
||||
@@ -690,6 +700,7 @@ gfx::Rect MultiContentsView::CalculateSe
|
||||
gfx::Rect(available_space.origin(), {leading_separator_width, height}));
|
||||
|
||||
const bool should_show_trailing =
|
||||
@@ -57,51 +174,44 @@
|
||||
drop_target_view_->side() == MultiContentsDropTargetView::DropSide::END;
|
||||
|
||||
const int trailing_separator_width =
|
||||
@@ -701,29 +690,6 @@ gfx::Rect MultiContentsView::CalculateSe
|
||||
@@ -701,7 +712,6 @@ gfx::Rect MultiContentsView::CalculateSe
|
||||
gfx::Rect(available_space.right() - trailing_separator_width,
|
||||
available_space.y(), trailing_separator_width, height));
|
||||
|
||||
- // Place the corner separator and set its orientation.
|
||||
- auto* const corner_separator = contents_separators_.corner_separator.get();
|
||||
- const auto corner_preferred_size = corner_separator->GetPreferredSize();
|
||||
- views::ChildLayout corner_layout(
|
||||
- corner_separator, contents_separators_.should_show_top &&
|
||||
- (should_show_leading || should_show_trailing));
|
||||
- if (corner_layout.visible) {
|
||||
- if (should_show_leading) {
|
||||
- corner_layout.bounds =
|
||||
- gfx::Rect(available_space.origin(), corner_preferred_size);
|
||||
- corner_separator->SetOrientation(
|
||||
- CustomFloatingCorner::CornerOrientation::kTopLeading);
|
||||
- } else {
|
||||
- corner_layout.bounds = gfx::Rect(
|
||||
- gfx::Point(available_space.right() - corner_preferred_size.width(),
|
||||
- available_space.y()),
|
||||
- corner_preferred_size);
|
||||
- corner_separator->SetOrientation(
|
||||
- CustomFloatingCorner::CornerOrientation::kTopTrailing);
|
||||
- }
|
||||
- }
|
||||
- child_layouts.push_back(corner_layout);
|
||||
-
|
||||
auto* const corner_separator = contents_separators_.corner_separator.get();
|
||||
const auto corner_preferred_size = corner_separator->GetPreferredSize();
|
||||
views::ChildLayout corner_layout(
|
||||
@@ -724,6 +734,22 @@ gfx::Rect MultiContentsView::CalculateSe
|
||||
}
|
||||
child_layouts.push_back(corner_layout);
|
||||
|
||||
+ auto* const trailing_corner_separator =
|
||||
+ contents_separators_.trailing_corner_separator.get();
|
||||
+ views::ChildLayout trailing_corner_layout(
|
||||
+ trailing_corner_separator,
|
||||
+ contents_separators_.should_show_top && should_show_leading &&
|
||||
+ should_show_trailing);
|
||||
+ if (trailing_corner_layout.visible) {
|
||||
+ trailing_corner_layout.bounds = gfx::Rect(
|
||||
+ gfx::Point(available_space.right() - corner_preferred_size.width(),
|
||||
+ available_space.y()),
|
||||
+ corner_preferred_size);
|
||||
+ trailing_corner_separator->SetOrientation(
|
||||
+ CustomFloatingCorner::CornerOrientation::kTopTrailing);
|
||||
+ }
|
||||
+ child_layouts.push_back(trailing_corner_layout);
|
||||
+
|
||||
return gfx::Rect(available_space.x() + leading_separator_width,
|
||||
available_space.y() + separator_height,
|
||||
width - trailing_separator_width - leading_separator_width,
|
||||
--- a/chrome/browser/ui/views/frame/multi_contents_view.h
|
||||
+++ b/chrome/browser/ui/views/frame/multi_contents_view.h
|
||||
@@ -25,7 +25,6 @@
|
||||
|
||||
class BrowserView;
|
||||
class ContentsWebView;
|
||||
-class CustomFloatingCorner;
|
||||
class MultiContentsBackgroundView;
|
||||
class MultiContentsDropTargetView;
|
||||
class MultiContentsResizeArea;
|
||||
@@ -220,7 +219,6 @@ class MultiContentsView
|
||||
raw_ptr<views::View> top_separator = nullptr;
|
||||
@@ -221,6 +221,7 @@ class MultiContentsView
|
||||
raw_ptr<views::View> leading_separator = nullptr;
|
||||
raw_ptr<views::View> trailing_separator = nullptr;
|
||||
- raw_ptr<CustomFloatingCorner> corner_separator = nullptr;
|
||||
raw_ptr<CustomFloatingCorner> corner_separator = nullptr;
|
||||
+ raw_ptr<CustomFloatingCorner> trailing_corner_separator = nullptr;
|
||||
|
||||
bool should_show_top = false;
|
||||
bool leading_side_chrome_attached = false;
|
||||
|
||||
@@ -310,7 +310,7 @@
|
||||
// Updating the top, left and right insets for contents container view when
|
||||
--- a/chrome/browser/ui/views/frame/multi_contents_view.h
|
||||
+++ b/chrome/browser/ui/views/frame/multi_contents_view.h
|
||||
@@ -169,10 +169,13 @@ class MultiContentsView
|
||||
@@ -170,10 +170,13 @@ class MultiContentsView
|
||||
MultiContentsViewDropTargetController& drop_target_controller() const;
|
||||
|
||||
bool IsDragAndDropEnabled() const;
|
||||
@@ -324,7 +324,7 @@
|
||||
void SetAttachedSideChromeVisibility(bool leading_attached,
|
||||
bool trailing_attached);
|
||||
void SetSplitViewInsets(const gfx::Insets& insets);
|
||||
@@ -265,8 +268,6 @@ class MultiContentsView
|
||||
@@ -268,8 +271,6 @@ class MultiContentsView
|
||||
// `MultiContentsView`. Returns 0 if not in a split view.
|
||||
int GetMinViewSize(gfx::Rect available_space) const;
|
||||
|
||||
@@ -333,7 +333,7 @@
|
||||
void UpdateContentsBorderAndOverlay() const;
|
||||
|
||||
double CalculateRatioWithSnapPoints(double start_size,
|
||||
@@ -331,6 +332,7 @@ class MultiContentsView
|
||||
@@ -334,6 +335,7 @@ class MultiContentsView
|
||||
PrefChangeRegistrar pref_change_registrar_;
|
||||
bool is_drag_drop_pref_enabled_ = false;
|
||||
bool is_rounded_frame_pref_enabled_ = false;
|
||||
@@ -379,7 +379,7 @@
|
||||
#endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_
|
||||
--- a/chrome/browser/ui/views/frame/multi_contents_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/multi_contents_view.cc
|
||||
@@ -507,8 +507,9 @@ views::ProposedLayout MultiContentsView:
|
||||
@@ -524,8 +524,9 @@ views::ProposedLayout MultiContentsView:
|
||||
available_space.Inset(split_view_insets_);
|
||||
} else if (should_use_rounded_frame) {
|
||||
gfx::Insets single_insets(kSplitViewContentInset);
|
||||
@@ -391,7 +391,7 @@
|
||||
single_insets.set_left(contents_separators_.leading_side_chrome_attached
|
||||
? 0
|
||||
: kSplitViewContentInset);
|
||||
@@ -646,8 +647,9 @@ gfx::Rect MultiContentsView::CalculateDr
|
||||
@@ -663,8 +664,9 @@ gfx::Rect MultiContentsView::CalculateDr
|
||||
available_space.x() + (is_drop_target_on_start ? drop_target_width : 0);
|
||||
int top_margin = 0;
|
||||
if (IsInSplitView() || should_use_rounded_frame) {
|
||||
@@ -403,7 +403,7 @@
|
||||
} else if (contents_separators_.should_show_top) {
|
||||
top_margin =
|
||||
contents_separators_.top_separator->GetPreferredSize().height();
|
||||
@@ -880,10 +882,18 @@ void MultiContentsView::OnRoundedFramePr
|
||||
@@ -940,10 +942,18 @@ void MultiContentsView::OnRoundedFramePr
|
||||
}
|
||||
|
||||
void MultiContentsView::SetShouldShowTopSeparator(bool should_show) {
|
||||
|
||||
@@ -252,16 +252,3 @@
|
||||
</div>
|
||||
|
||||
<div
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -2916,6 +2916,10 @@ void BrowserView::NotifyWidgetSizeConstr
|
||||
}
|
||||
|
||||
void BrowserView::OnWidgetShowStateChanged(views::Widget* widget) {
|
||||
+ if (toolbar_) {
|
||||
+ toolbar_->InvalidateLayout();
|
||||
+ }
|
||||
+
|
||||
// `display-state` @media feature value in renderer needs to be updated.
|
||||
SynchronizeRenderWidgetHostVisualPropertiesForMainFrame();
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
void BrowserView::OnProjectsPanelStateChanged(
|
||||
ProjectsPanelStateController* controller) {
|
||||
projects_panel_container_->OnProjectsPanelStateChanged(controller);
|
||||
@@ -3835,9 +3866,10 @@ void BrowserView::ReparentTabStripAndWeb
|
||||
@@ -3831,9 +3862,10 @@ void BrowserView::ReparentTabStripAndWeb
|
||||
// The TabStrip must be placed in the same position before the reparenting
|
||||
// to maintain the correct Z-order to ensure it can receive mouse events.
|
||||
// See crbug.com/454852658.
|
||||
@@ -156,7 +156,7 @@
|
||||
|
||||
// Reparent PWA views that were moved for immersive and ChromeOS tablet
|
||||
// mode.
|
||||
@@ -4983,6 +5015,16 @@ void BrowserView::AddedToWidget() {
|
||||
@@ -4979,6 +5011,16 @@ void BrowserView::AddedToWidget() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -771,7 +771,7 @@
|
||||
void StartPasswordManagerTutorial();
|
||||
--- a/chrome/browser/glic/suggestions/contextual_cueing_helper.cc
|
||||
+++ b/chrome/browser/glic/suggestions/contextual_cueing_helper.cc
|
||||
@@ -499,10 +499,6 @@ ContextualCueingHelper::AutoOpenGlicSide
|
||||
@@ -504,10 +504,6 @@ ContextualCueingHelper::AutoOpenGlicSide
|
||||
Profile* profile =
|
||||
Profile::FromBrowserContext(web_contents()->GetBrowserContext());
|
||||
bool vertical_tabs_enabled = false;
|
||||
|
||||
@@ -676,7 +676,7 @@
|
||||
/*align_leading=*/true,
|
||||
/*expand=*/false),
|
||||
+ TabChildConfig(alert_indicator_, kIconDesignWidth, kDefaultPadding,
|
||||
+ /*align_leading=*/true,
|
||||
+ /*align_leading=*/false,
|
||||
+ /*expand=*/false, /*decorate_on_collapse=*/true),
|
||||
TabChildConfig(title_, kTitleMinWidth, kDefaultPadding,
|
||||
/*align_leading=*/true,
|
||||
@@ -1037,7 +1037,7 @@
|
||||
+ // when the vertical-vs-horizontal state actually changes; for in-vertical
|
||||
+ // property changes (e.g. right-alignment) a layout pass is sufficient.
|
||||
+ const bool vertical_initialized =
|
||||
+ vertical_tab_strip_region_view_->GetTabStripView() != nullptr;
|
||||
+ vertical_tab_strip_region_view_->root_node_for_testing() != nullptr;
|
||||
+ const bool should_be_vertical = controller->ShouldDisplayVerticalTabs();
|
||||
+ if (vertical_initialized == should_be_vertical) {
|
||||
+ // Mode is unchanged; just re-layout so alignment-dependent views update.
|
||||
@@ -1049,7 +1049,7 @@
|
||||
horizontal_tab_strip_region_view_->ResetTabStrip();
|
||||
vertical_tab_strip_region_view_->InitializeTabStrip();
|
||||
} else {
|
||||
@@ -4234,13 +4233,23 @@ const views::Widget* BrowserView::GetWid
|
||||
@@ -4230,13 +4229,23 @@ const views::Widget* BrowserView::GetWid
|
||||
}
|
||||
|
||||
void BrowserView::CreateTabSearchBubble() {
|
||||
@@ -1075,7 +1075,7 @@
|
||||
tab_search_host->CloseTabSearchBubble();
|
||||
}
|
||||
}
|
||||
@@ -4280,34 +4289,21 @@ void BrowserView::UpdateTabSearchBubbleH
|
||||
@@ -4276,34 +4285,21 @@ void BrowserView::UpdateTabSearchBubbleH
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1125,7 +1125,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5088,9 +5084,6 @@ void BrowserView::AddedToWidget() {
|
||||
@@ -5084,9 +5080,6 @@ void BrowserView::AddedToWidget() {
|
||||
layout_views.horizontal_tab_strip_region_view =
|
||||
horizontal_tab_strip_region_view_;
|
||||
layout_views.vertical_tab_strip_region_view = vertical_tab_strip_region_view_;
|
||||
|
||||
@@ -160,15 +160,7 @@
|
||||
InvalidateLayout();
|
||||
return;
|
||||
}
|
||||
@@ -1603,6 +1691,7 @@ void BrowserView::OnVerticalTabStripMode
|
||||
if (should_be_vertical) {
|
||||
horizontal_tab_strip_region_view_->ResetTabStrip();
|
||||
vertical_tab_strip_region_view_->InitializeTabStrip();
|
||||
+ MaybeExpandVerticalTabStripForZenMode();
|
||||
} else {
|
||||
vertical_tab_strip_region_view_->ResetTabStrip();
|
||||
horizontal_tab_strip_region_view_->InitializeTabStrip();
|
||||
@@ -1635,10 +1724,425 @@ void BrowserView::OnToolbarTabStripState
|
||||
@@ -1635,10 +1723,424 @@ void BrowserView::OnToolbarTabStripState
|
||||
toolbar_->UpdateToolbarLayout();
|
||||
}
|
||||
|
||||
@@ -182,10 +174,16 @@
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ if (IsZenModeSideChromePinned()) {
|
||||
+ const bool side_chrome_pinned = IsZenModeSideChromePinned();
|
||||
+ if (side_chrome_pinned) {
|
||||
+ zen_side_chrome_animation_.Reset(1);
|
||||
+ } else {
|
||||
+ MaybeExpandVerticalTabStripForZenMode();
|
||||
+ } else if (auto* controller =
|
||||
+ tabs::VerticalTabStripStateController::From(browser_);
|
||||
+ controller && controller->IsCollapsed()) {
|
||||
+ controller->RequestCollapse(false);
|
||||
+ }
|
||||
+
|
||||
+ if (!side_chrome_pinned) {
|
||||
+ UpdateZenModeRevealFromCursor();
|
||||
+ }
|
||||
+
|
||||
@@ -223,20 +221,6 @@
|
||||
+ InvalidateLayout();
|
||||
+}
|
||||
+
|
||||
+// Unpinned sidebar floats in zen mode, so we make sure that VTS is usable
|
||||
+// in that state by expanding it when it's attached, not pinned, and collapsed.
|
||||
+void BrowserView::MaybeExpandVerticalTabStripForZenMode() {
|
||||
+ if (!zen_mode_enabled_ || IsZenModeSideChromePinned() ||
|
||||
+ !ShouldDrawVerticalTabStrip()) {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ auto* controller = tabs::VerticalTabStripStateController::From(browser_);
|
||||
+ if (controller && controller->IsCollapsed()) {
|
||||
+ controller->RequestCollapse(false);
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+void BrowserView::UpdateZenModeState() {
|
||||
+ const bool zen_mode_enabled = IsZenModeEnabled();
|
||||
+ UpdateZenModeEventMonitor();
|
||||
@@ -267,7 +251,14 @@
|
||||
+ UpdateZenModeReveal(/*reveal_top=*/false, /*reveal_side=*/false);
|
||||
+ }
|
||||
+
|
||||
+ MaybeExpandVerticalTabStripForZenMode();
|
||||
+ // Force the vertical tab strip expanded when not pinned.
|
||||
+ if (auto* controller =
|
||||
+ tabs::VerticalTabStripStateController::From(browser_)) {
|
||||
+ if (zen_mode_enabled_ && !IsZenModeSideChromePinned() &&
|
||||
+ controller->IsCollapsed()) {
|
||||
+ controller->RequestCollapse(false);
|
||||
+ }
|
||||
+ }
|
||||
+ UpdateZenCollapseButtonVisibility();
|
||||
+
|
||||
+ if (!zen_mode_enabled_) {
|
||||
@@ -594,7 +585,7 @@
|
||||
void BrowserView::OnProjectsPanelStateChanged(
|
||||
ProjectsPanelStateController* controller) {
|
||||
projects_panel_container_->OnProjectsPanelStateChanged(controller);
|
||||
@@ -2350,6 +2854,8 @@ void BrowserView::FullscreenStateChanged
|
||||
@@ -2350,6 +2852,8 @@ void BrowserView::FullscreenStateChanged
|
||||
!GetFocusManager()->GetFocusedView());
|
||||
}
|
||||
}
|
||||
@@ -603,7 +594,7 @@
|
||||
}
|
||||
|
||||
ToolbarButtonProvider* BrowserView::toolbar_button_provider() {
|
||||
@@ -2400,6 +2906,13 @@ void BrowserView::SetFocusToLocationBar(
|
||||
@@ -2400,6 +2904,13 @@ void BrowserView::SetFocusToLocationBar(
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -617,7 +608,7 @@
|
||||
LocationBar* location_bar = GetLocationBar();
|
||||
location_bar->FocusLocation(is_user_initiated,
|
||||
/*clear_focus_if_failed=*/true);
|
||||
@@ -3083,7 +3596,7 @@ bool BrowserView::IsToolbarVisible() con
|
||||
@@ -3079,7 +3590,7 @@ bool BrowserView::IsToolbarVisible() con
|
||||
}
|
||||
|
||||
bool BrowserView::IsToolbarShowing() const {
|
||||
@@ -626,7 +617,7 @@
|
||||
}
|
||||
|
||||
bool BrowserView::IsLocationBarVisible() const {
|
||||
@@ -4171,6 +4684,11 @@ void BrowserView::OnWidgetActivationChan
|
||||
@@ -4167,6 +4678,11 @@ void BrowserView::OnWidgetActivationChan
|
||||
}
|
||||
}
|
||||
|
||||
@@ -638,7 +629,7 @@
|
||||
browser_->GetFeatures()
|
||||
.extension_keybinding_registry()
|
||||
->OnHostActivationChanged(active);
|
||||
@@ -5019,6 +5537,8 @@ void BrowserView::AddedToWidget() {
|
||||
@@ -5015,6 +5531,8 @@ void BrowserView::AddedToWidget() {
|
||||
base::BindRepeating(&BrowserView::OnToolbarTabStripStateChanged,
|
||||
base::Unretained(this)));
|
||||
OnToolbarTabStripStateChanged(helium_layout_controller);
|
||||
@@ -647,7 +638,7 @@
|
||||
}
|
||||
|
||||
UpdateTabSearchBubbleHost();
|
||||
@@ -5103,6 +5623,9 @@ void BrowserView::AddedToWidget() {
|
||||
@@ -5099,6 +5617,9 @@ void BrowserView::AddedToWidget() {
|
||||
// once per browser instance.
|
||||
auto* toolbar_button_provider = ToolbarButtonProvider::From(browser_);
|
||||
CHECK(toolbar_button_provider);
|
||||
@@ -657,7 +648,7 @@
|
||||
|
||||
// `AutofillBubbleHandlerImpl` depends on the ToolbarButtonProvider so it must
|
||||
// be constructed following the check above.
|
||||
@@ -5159,6 +5682,8 @@ void BrowserView::AddedToWidget() {
|
||||
@@ -5155,6 +5676,8 @@ void BrowserView::AddedToWidget() {
|
||||
}
|
||||
|
||||
void BrowserView::RemovedFromWidget() {
|
||||
@@ -666,7 +657,7 @@
|
||||
CHECK(GetFocusManager());
|
||||
focus_manager_observation_.Reset();
|
||||
}
|
||||
@@ -5187,6 +5712,14 @@ void BrowserView::OnThemeChanged() {
|
||||
@@ -5183,6 +5706,14 @@ void BrowserView::OnThemeChanged() {
|
||||
}
|
||||
|
||||
FrameColorsChanged();
|
||||
@@ -681,7 +672,7 @@
|
||||
}
|
||||
|
||||
bool BrowserView::GetDropFormats(
|
||||
@@ -5450,6 +5983,9 @@ void BrowserView::UpdateFastResizeForCon
|
||||
@@ -5446,6 +5977,9 @@ void BrowserView::UpdateFastResizeForCon
|
||||
}
|
||||
|
||||
int BrowserView::GetClientAreaTop() {
|
||||
@@ -691,7 +682,7 @@
|
||||
views::View* top_view = toolbar_;
|
||||
|
||||
// Get the top of the top view in browser view coordinates.
|
||||
@@ -6061,6 +6597,56 @@ void BrowserView::OnWillChangeFocus(View
|
||||
@@ -6057,6 +6591,56 @@ void BrowserView::OnWillChangeFocus(View
|
||||
}
|
||||
void BrowserView::OnDidChangeFocus(View* focused_before, View* focused_now) {
|
||||
UpdateAccessibleNameForRootView();
|
||||
@@ -839,7 +830,7 @@
|
||||
// Testing interface:
|
||||
views::View* GetContentsContainerForTest() { return contents_container_; }
|
||||
BrowserViewLayout* GetBrowserViewLayoutForTesting() {
|
||||
@@ -915,6 +950,27 @@ class BrowserView : public BrowserWindow
|
||||
@@ -915,6 +950,26 @@ class BrowserView : public BrowserWindow
|
||||
|
||||
void OnProjectsPanelStateChanged(ProjectsPanelStateController* controller);
|
||||
|
||||
@@ -847,7 +838,6 @@
|
||||
+ void OnZenModeSideChromePinnedPrefChanged();
|
||||
+ void OnZenModeTopChromePinnedPrefChanged();
|
||||
+ void UpdateZenModeState();
|
||||
+ void MaybeExpandVerticalTabStripForZenMode();
|
||||
+ void UpdateZenCollapseButtonVisibility();
|
||||
+ void UpdateZenModeEventMonitor();
|
||||
+ void StartZenCollapseTimer(base::TimeDelta delay);
|
||||
@@ -867,7 +857,7 @@
|
||||
// Callback for the loading animation(s) associated with this view.
|
||||
void LoadingAnimationTimerCallback();
|
||||
void LoadingAnimationCallback(base::TimeTicks timestamp);
|
||||
@@ -1363,6 +1419,9 @@ class BrowserView : public BrowserWindow
|
||||
@@ -1363,6 +1418,9 @@ class BrowserView : public BrowserWindow
|
||||
base::ScopedObservation<views::Widget, views::WidgetObserver>
|
||||
widget_observation_{this};
|
||||
|
||||
@@ -877,7 +867,7 @@
|
||||
bool interactive_resize_in_progress_ = false;
|
||||
|
||||
// The last bounds we notified about in TryNotifyWindowBoundsChanged().
|
||||
@@ -1417,6 +1476,14 @@ class BrowserView : public BrowserWindow
|
||||
@@ -1417,6 +1475,14 @@ class BrowserView : public BrowserWindow
|
||||
|
||||
std::unique_ptr<TabCyclingEventHandler> tab_cycling_event_handler_;
|
||||
|
||||
@@ -1238,17 +1228,7 @@
|
||||
}
|
||||
|
||||
// TODO(crbug.com/469425263): Ensure correct layout calculations for the
|
||||
@@ -878,7 +984,8 @@ BrowserViewTabbedLayoutImpl::CalculatePr
|
||||
top_container_layout.bounds = GetTopContainerBoundsInParent(
|
||||
top_container_local_bounds, parent_params);
|
||||
|
||||
- if (layout_data_->tab_strip_type == TabStripType::kVertical) {
|
||||
+ if (layout_data_->tab_strip_type == TabStripType::kVertical &&
|
||||
+ !zen.floating_vertical_tab_strip) {
|
||||
auto& top_container_children = top_container_layout.children;
|
||||
auto bookmarks_child = top_container_children.find(views().bookmark_bar);
|
||||
if (bookmarks_child != top_container_children.end() &&
|
||||
@@ -900,15 +1007,40 @@ BrowserViewTabbedLayoutImpl::CalculatePr
|
||||
@@ -900,15 +1006,40 @@ BrowserViewTabbedLayoutImpl::CalculatePr
|
||||
if (const auto* toolbar_layout =
|
||||
top_container_layout.GetLayoutFor(views().toolbar);
|
||||
toolbar_layout && !toolbar_layout->bounds.IsEmpty()) {
|
||||
@@ -1291,7 +1271,7 @@
|
||||
}
|
||||
|
||||
if (dynamic_tab_strip) {
|
||||
@@ -916,15 +1048,21 @@ BrowserViewTabbedLayoutImpl::CalculatePr
|
||||
@@ -916,15 +1047,21 @@ BrowserViewTabbedLayoutImpl::CalculatePr
|
||||
|
||||
const int tabstrip_height =
|
||||
views().horizontal_tab_strip_region_view->GetPreferredSize().height();
|
||||
@@ -1321,7 +1301,7 @@
|
||||
}
|
||||
|
||||
// Lay out the main area background.
|
||||
@@ -1059,7 +1197,8 @@ BrowserViewTabbedLayoutImpl::CalculatePr
|
||||
@@ -1059,7 +1196,8 @@ BrowserViewTabbedLayoutImpl::CalculatePr
|
||||
params.SetTop(top_container_layout.bounds.bottom());
|
||||
}
|
||||
|
||||
@@ -1331,7 +1311,7 @@
|
||||
if (delegate().IsVerticalTabStripRightAligned()) {
|
||||
trailing_side_chrome_attached = true;
|
||||
} else {
|
||||
@@ -1102,14 +1241,21 @@ BrowserViewTabbedLayoutImpl::CalculatePr
|
||||
@@ -1102,14 +1240,21 @@ BrowserViewTabbedLayoutImpl::CalculatePr
|
||||
const auto& separator_info = layout_data_->separator_info;
|
||||
views().multi_contents_view->SetTopChromeAttachmentState(
|
||||
infobar_visible && should_use_rounded_frame,
|
||||
@@ -1356,7 +1336,7 @@
|
||||
const bool include_leading_inset =
|
||||
separator_info.shadow_box ||
|
||||
!(horizontal_layout.has_side_panel() && side_panel_leading);
|
||||
@@ -1121,7 +1267,7 @@ BrowserViewTabbedLayoutImpl::CalculatePr
|
||||
@@ -1121,7 +1266,7 @@ BrowserViewTabbedLayoutImpl::CalculatePr
|
||||
base::ClampRound((1.0 - side_panel_reveal_amount) * default_inset);
|
||||
|
||||
const gfx::Insets contents_insets = gfx::Insets::TLBR(
|
||||
@@ -1365,7 +1345,7 @@
|
||||
include_leading_inset ? default_inset : panel_side_inset, default_inset,
|
||||
include_trailing_inset ? default_inset : panel_side_inset);
|
||||
|
||||
@@ -1235,6 +1381,8 @@ BrowserViewTabbedLayoutImpl::CalculatePr
|
||||
@@ -1235,6 +1380,8 @@ BrowserViewTabbedLayoutImpl::CalculatePr
|
||||
|
||||
views().vertical_tab_strip_region_view->SetHasLeadingExclusionForLayout(
|
||||
has_leading_exclusion);
|
||||
@@ -1374,7 +1354,7 @@
|
||||
|
||||
const int padding =
|
||||
GetLayoutConstant(LayoutConstant::kVerticalTabStripHorizontalPadding);
|
||||
@@ -1263,6 +1411,8 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
|
||||
@@ -1263,6 +1410,8 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
|
||||
IsDynamicTabStrip(layout_data_->tab_strip_type);
|
||||
const bool show_dynamic_tab_strip =
|
||||
ShowDynamicTabStrip(layout_data_->tab_strip_type);
|
||||
@@ -1383,7 +1363,7 @@
|
||||
|
||||
if (IsParentedTo(views().horizontal_tab_strip_region_view,
|
||||
views().top_container)) {
|
||||
@@ -1271,12 +1421,19 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
|
||||
@@ -1271,12 +1420,19 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
|
||||
const int leading_margin = GetHorizontalTabStripLeadingMargin(params);
|
||||
tabstrip_bounds = GetBoundsWithExclusion(
|
||||
params, views().horizontal_tab_strip_region_view, leading_margin);
|
||||
@@ -1406,7 +1386,7 @@
|
||||
}
|
||||
|
||||
// Lay out toolbar. If toolbar is in the top-most row, it will go into the
|
||||
@@ -1297,21 +1454,26 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
|
||||
@@ -1297,21 +1453,26 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
|
||||
params.visual_client_area.y(),
|
||||
params.visual_client_area.width(),
|
||||
views().toolbar->GetPreferredSize().height());
|
||||
@@ -1437,7 +1417,7 @@
|
||||
}
|
||||
|
||||
// Lay out the bookmarks bar if one is present.
|
||||
@@ -1320,24 +1482,33 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
|
||||
@@ -1320,24 +1481,33 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
|
||||
const gfx::Rect bookmarks_bounds(
|
||||
params.visual_client_area.x(), params.visual_client_area.y(),
|
||||
params.visual_client_area.width(),
|
||||
@@ -1478,7 +1458,7 @@
|
||||
}
|
||||
|
||||
return gfx::Rect(params.visual_client_area.x(), original_top,
|
||||
@@ -1345,13 +1516,60 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
|
||||
@@ -1345,13 +1515,60 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
|
||||
params.visual_client_area.y() - original_top);
|
||||
}
|
||||
|
||||
@@ -1635,7 +1615,7 @@
|
||||
CopyURL(browser_, browser_->tab_strip_model()->GetActiveWebContents());
|
||||
--- a/chrome/browser/ui/views/frame/multi_contents_view.h
|
||||
+++ b/chrome/browser/ui/views/frame/multi_contents_view.h
|
||||
@@ -83,6 +83,9 @@ class MultiContentsView
|
||||
@@ -84,6 +84,9 @@ class MultiContentsView
|
||||
const gfx::RoundedCornersF& background_radii() const;
|
||||
void SetBackgroundRadii(const gfx::RoundedCornersF& radii);
|
||||
|
||||
@@ -1645,7 +1625,7 @@
|
||||
// Returns true if more than one WebContents is displayed.
|
||||
bool IsInSplitView() const;
|
||||
|
||||
@@ -228,6 +231,14 @@ class MultiContentsView
|
||||
@@ -231,6 +234,14 @@ class MultiContentsView
|
||||
bool trailing_side_chrome_attached = false;
|
||||
};
|
||||
|
||||
@@ -1660,7 +1640,7 @@
|
||||
static constexpr int kMinWebContentsSize = 200;
|
||||
static constexpr int kConstrainedMinWebContentsSize = 50;
|
||||
static constexpr double kMinWebContentsSizePercentage = 0.1;
|
||||
@@ -241,6 +252,7 @@ class MultiContentsView
|
||||
@@ -244,6 +255,7 @@ class MultiContentsView
|
||||
// available space after the layout.
|
||||
gfx::Rect CalculateDropTargetLayout(
|
||||
const gfx::Rect& available_space,
|
||||
@@ -1668,7 +1648,7 @@
|
||||
std::vector<views::ChildLayout>& child_layouts) const;
|
||||
|
||||
// Adds separator layouts to the given list and returns the remaining
|
||||
@@ -268,6 +280,9 @@ class MultiContentsView
|
||||
@@ -271,6 +283,9 @@ class MultiContentsView
|
||||
// `MultiContentsView`. Returns 0 if not in a split view.
|
||||
int GetMinViewSize(gfx::Rect available_space) const;
|
||||
|
||||
@@ -1678,7 +1658,7 @@
|
||||
void UpdateContentsBorderAndOverlay() const;
|
||||
|
||||
double CalculateRatioWithSnapPoints(double start_size,
|
||||
@@ -317,10 +332,11 @@ class MultiContentsView
|
||||
@@ -320,10 +335,11 @@ class MultiContentsView
|
||||
// a resize action began. Nullopt if not currently resizing.
|
||||
std::optional<int> initial_start_size_on_resize_;
|
||||
|
||||
@@ -1938,7 +1918,7 @@
|
||||
|
||||
#include "base/check_deref.h"
|
||||
#include "base/feature_list.h"
|
||||
@@ -55,8 +56,18 @@
|
||||
@@ -56,8 +57,18 @@
|
||||
|
||||
namespace {
|
||||
constexpr int kSnapDistance = 15;
|
||||
@@ -1957,7 +1937,7 @@
|
||||
void MultiContentsView::ContentsSeparators::Reset() {
|
||||
top_separator = nullptr;
|
||||
leading_separator = nullptr;
|
||||
@@ -426,6 +437,41 @@ int MultiContentsView::GetInactiveIndex(
|
||||
@@ -443,6 +454,41 @@ int MultiContentsView::GetInactiveIndex(
|
||||
return active_index_ == 0 ? 1 : 0;
|
||||
}
|
||||
|
||||
@@ -1999,7 +1979,7 @@
|
||||
void MultiContentsView::OnWebContentsFocused(views::WebView* web_view) {
|
||||
if (IsInSplitView()) {
|
||||
// Check whether the widget is visible as otherwise during browser hide,
|
||||
@@ -488,16 +534,17 @@ views::ProposedLayout MultiContentsView:
|
||||
@@ -505,16 +551,17 @@ views::ProposedLayout MultiContentsView:
|
||||
|
||||
gfx::Rect available_space = gfx::Rect(width, height);
|
||||
|
||||
@@ -2022,7 +2002,7 @@
|
||||
}
|
||||
|
||||
available_space =
|
||||
@@ -507,9 +554,7 @@ views::ProposedLayout MultiContentsView:
|
||||
@@ -524,9 +571,7 @@ views::ProposedLayout MultiContentsView:
|
||||
available_space.Inset(split_view_insets_);
|
||||
} else if (should_use_rounded_frame) {
|
||||
gfx::Insets single_insets(kSplitViewContentInset);
|
||||
@@ -2033,7 +2013,7 @@
|
||||
single_insets.set_left(contents_separators_.leading_side_chrome_attached
|
||||
? 0
|
||||
: kSplitViewContentInset);
|
||||
@@ -612,6 +657,7 @@ void MultiContentsView::BeforeApplyLayou
|
||||
@@ -629,6 +674,7 @@ void MultiContentsView::BeforeApplyLayou
|
||||
|
||||
gfx::Rect MultiContentsView::CalculateDropTargetLayout(
|
||||
const gfx::Rect& available_space,
|
||||
@@ -2041,7 +2021,7 @@
|
||||
std::vector<views::ChildLayout>& child_layouts) const {
|
||||
CHECK(IsDragAndDropEnabled());
|
||||
if (!drop_target_view_->GetVisible()) {
|
||||
@@ -625,19 +671,17 @@ gfx::Rect MultiContentsView::CalculateDr
|
||||
@@ -642,19 +688,17 @@ gfx::Rect MultiContentsView::CalculateDr
|
||||
const bool is_drop_target_on_start =
|
||||
drop_target_view_->side() == MultiContentsDropTargetView::DropSide::START;
|
||||
const bool should_use_rounded_frame = ShouldUseRoundedFrame();
|
||||
@@ -2066,7 +2046,7 @@
|
||||
UpdateContentsBorderAndOverlay();
|
||||
|
||||
const int drop_target_x =
|
||||
@@ -646,10 +690,8 @@ gfx::Rect MultiContentsView::CalculateDr
|
||||
@@ -663,10 +707,8 @@ gfx::Rect MultiContentsView::CalculateDr
|
||||
const int remaining_space_x =
|
||||
available_space.x() + (is_drop_target_on_start ? drop_target_width : 0);
|
||||
int top_margin = 0;
|
||||
@@ -2079,7 +2059,34 @@
|
||||
} else if (contents_separators_.should_show_top) {
|
||||
top_margin =
|
||||
contents_separators_.top_separator->GetPreferredSize().height();
|
||||
@@ -791,6 +833,12 @@ bool MultiContentsView::ShouldUseRounded
|
||||
@@ -737,10 +779,14 @@ gfx::Rect MultiContentsView::CalculateSe
|
||||
gfx::Rect(available_space.right() - trailing_separator_width,
|
||||
available_space.y(), trailing_separator_width, height));
|
||||
|
||||
+ const bool show_floating_corners =
|
||||
+ !browser_view_->IsZenModeEnabledForLayout();
|
||||
+
|
||||
auto* const corner_separator = contents_separators_.corner_separator.get();
|
||||
const auto corner_preferred_size = corner_separator->GetPreferredSize();
|
||||
views::ChildLayout corner_layout(
|
||||
- corner_separator, contents_separators_.should_show_top &&
|
||||
+ corner_separator, show_floating_corners &&
|
||||
+ contents_separators_.should_show_top &&
|
||||
(should_show_leading || should_show_trailing));
|
||||
if (corner_layout.visible) {
|
||||
if (should_show_leading) {
|
||||
@@ -763,8 +809,8 @@ gfx::Rect MultiContentsView::CalculateSe
|
||||
contents_separators_.trailing_corner_separator.get();
|
||||
views::ChildLayout trailing_corner_layout(
|
||||
trailing_corner_separator,
|
||||
- contents_separators_.should_show_top && should_show_leading &&
|
||||
- should_show_trailing);
|
||||
+ show_floating_corners && contents_separators_.should_show_top &&
|
||||
+ should_show_leading && should_show_trailing);
|
||||
if (trailing_corner_layout.visible) {
|
||||
trailing_corner_layout.bounds = gfx::Rect(
|
||||
gfx::Point(available_space.right() - corner_preferred_size.width(),
|
||||
@@ -851,6 +897,12 @@ bool MultiContentsView::ShouldUseRounded
|
||||
!is_fullscreen;
|
||||
}
|
||||
|
||||
@@ -2092,7 +2099,7 @@
|
||||
void MultiContentsView::UpdateContentsBorderAndOverlay() const {
|
||||
const views::Widget* widget = browser_view_->GetWidget();
|
||||
const bool is_fullscreen = widget && widget->IsFullscreen();
|
||||
@@ -804,17 +852,25 @@ void MultiContentsView::UpdateContentsBo
|
||||
@@ -864,17 +916,25 @@ void MultiContentsView::UpdateContentsBo
|
||||
const bool is_drop_target_on_end =
|
||||
is_drop_target_visible &&
|
||||
drop_target_view_->side() == MultiContentsDropTargetView::DropSide::END;
|
||||
@@ -2127,7 +2134,7 @@
|
||||
|
||||
for (auto* contents_container_view : contents_container_views_) {
|
||||
const bool is_active =
|
||||
@@ -833,6 +889,8 @@ void MultiContentsView::UpdateContentsBo
|
||||
@@ -893,6 +953,8 @@ void MultiContentsView::UpdateContentsBo
|
||||
contents_container_view->UpdateBorderAndOverlay(
|
||||
is_in_split, should_round_contents, is_active,
|
||||
is_active && active_contents_view_highlighted_,
|
||||
@@ -2136,7 +2143,7 @@
|
||||
use_system_bottom_left_radius && is_first_view,
|
||||
use_system_bottom_right_radius && is_last_view);
|
||||
}
|
||||
@@ -894,9 +952,7 @@ void MultiContentsView::SetTopChromeAtta
|
||||
@@ -954,9 +1016,7 @@ void MultiContentsView::SetTopChromeAtta
|
||||
}
|
||||
top_edge_attached_to_infobar_ = top_edge_attached_to_infobar;
|
||||
contents_separators_.should_show_top = should_show_top_separator;
|
||||
@@ -2147,7 +2154,7 @@
|
||||
// This can be called during BrowserView layout, so protect against creating a
|
||||
// layout loop.
|
||||
InvalidateLayout(/*avoid_propagate_during_layout=*/true);
|
||||
@@ -911,11 +967,7 @@ void MultiContentsView::SetAttachedSideC
|
||||
@@ -971,11 +1031,7 @@ void MultiContentsView::SetAttachedSideC
|
||||
}
|
||||
contents_separators_.leading_side_chrome_attached = leading_attached;
|
||||
contents_separators_.trailing_side_chrome_attached = trailing_attached;
|
||||
|
||||
@@ -275,7 +275,7 @@
|
||||
raw_ptr<views::ImageView> icon_view_ = nullptr;
|
||||
--- a/chrome/browser/ui/views/frame/multi_contents_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/multi_contents_view.cc
|
||||
@@ -614,27 +614,50 @@ gfx::Rect MultiContentsView::CalculateDr
|
||||
@@ -631,27 +631,50 @@ gfx::Rect MultiContentsView::CalculateDr
|
||||
std::vector<views::ChildLayout>& child_layouts) const {
|
||||
CHECK(IsDragAndDropEnabled());
|
||||
if (!drop_target_view_->GetVisible()) {
|
||||
@@ -337,7 +337,7 @@
|
||||
|
||||
return gfx::Rect(remaining_space_x, available_space.y(),
|
||||
available_space.width() - drop_target_width,
|
||||
@@ -766,23 +789,30 @@ bool MultiContentsView::ShouldUseRounded
|
||||
@@ -826,23 +849,30 @@ bool MultiContentsView::ShouldUseRounded
|
||||
!is_fullscreen;
|
||||
}
|
||||
|
||||
@@ -375,7 +375,7 @@
|
||||
const bool is_active =
|
||||
--- a/chrome/browser/ui/views/frame/multi_contents_view.h
|
||||
+++ b/chrome/browser/ui/views/frame/multi_contents_view.h
|
||||
@@ -267,7 +267,7 @@ class MultiContentsView
|
||||
@@ -270,7 +270,7 @@ class MultiContentsView
|
||||
|
||||
bool ShouldUseRoundedFrame() const;
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/browser_actions.cc
|
||||
+++ b/chrome/browser/ui/browser_actions.cc
|
||||
@@ -74,8 +74,6 @@
|
||||
@@ -73,8 +73,6 @@
|
||||
#include "chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.h"
|
||||
#include "chrome/browser/ui/read_anything/read_anything_entry_point_controller.h"
|
||||
#include "chrome/browser/ui/search/omnibox_utils.h"
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "chrome/browser/ui/side_panel/side_panel_action_callback.h"
|
||||
#include "chrome/browser/ui/side_panel/side_panel_entry_id.h"
|
||||
#include "chrome/browser/ui/side_panel/side_panel_entry_key.h"
|
||||
@@ -102,7 +100,6 @@
|
||||
@@ -101,7 +99,6 @@
|
||||
#include "chrome/browser/ui/views/location_bar/record_replay_page_action_controller.h"
|
||||
#include "chrome/browser/ui/views/media_router/cast_browser_controller.h"
|
||||
#include "chrome/browser/ui/views/page_info/page_info_view_factory.h"
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "chrome/browser/ui/views/side_panel/comments/comments_side_panel_coordinator.h"
|
||||
#include "chrome/browser/ui/views/side_panel/history/history_side_panel_coordinator.h"
|
||||
#include "chrome/browser/ui/views/side_panel/history_clusters/history_clusters_side_panel_utils.h"
|
||||
@@ -280,24 +277,6 @@ void BrowserActions::InitializeSidePanel
|
||||
@@ -279,24 +276,6 @@ void BrowserActions::InitializeSidePanel
|
||||
kActionSidePanelShowBookmarks, bwi, true)
|
||||
.Build());
|
||||
root_action_item_->AddChild(
|
||||
@@ -42,7 +42,7 @@
|
||||
SidePanelAction(SidePanelEntryId::kAboutThisSite,
|
||||
IDS_PAGE_INFO_ABOUT_THIS_PAGE_TITLE,
|
||||
IDS_PAGE_INFO_ABOUT_THIS_PAGE_TITLE,
|
||||
@@ -314,24 +293,6 @@ void BrowserActions::InitializeSidePanel
|
||||
@@ -313,24 +292,6 @@ void BrowserActions::InitializeSidePanel
|
||||
: vector_icons::kEditChromeRefreshOldIcon,
|
||||
kActionSidePanelShowCustomizeChrome, bwi, false)
|
||||
.Build());
|
||||
@@ -67,7 +67,7 @@
|
||||
if (side_panel::history_clusters::
|
||||
IsHistoryClustersSidePanelSupportedForProfile(profile) &&
|
||||
!HistorySidePanelCoordinator::IsSupported()) {
|
||||
@@ -411,53 +372,6 @@ void BrowserActions::InitializeSidePanel
|
||||
@@ -410,53 +371,6 @@ void BrowserActions::InitializeSidePanel
|
||||
.Build());
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
if (CommentsSidePanelCoordinator::IsSupported()) {
|
||||
root_action_item_->AddChild(
|
||||
SidePanelAction(SidePanelEntryId::kComments,
|
||||
@@ -748,68 +662,6 @@ void BrowserActions::InitializePageActio
|
||||
@@ -744,68 +658,6 @@ void BrowserActions::InitializePageActio
|
||||
base::BindRepeating(
|
||||
[](BrowserWindowInterface* bwi, actions::ActionItem* item,
|
||||
actions::ActionInvocationContext context) {
|
||||
@@ -190,7 +190,7 @@
|
||||
auto* tab_interface = bwi->GetActiveTabInterface();
|
||||
CHECK(tab_interface);
|
||||
|
||||
@@ -1038,44 +890,6 @@ void BrowserActions::InitializeChromeMen
|
||||
@@ -1034,44 +886,6 @@ void BrowserActions::InitializeChromeMen
|
||||
: kDeveloperToolsOldIcon)
|
||||
.Build());
|
||||
|
||||
@@ -235,7 +235,7 @@
|
||||
root_action_item_->AddChild(
|
||||
actions::ActionItem::Builder(
|
||||
base::BindRepeating(
|
||||
@@ -1131,80 +945,6 @@ void BrowserActions::InitializeChromeMen
|
||||
@@ -1127,80 +941,6 @@ void BrowserActions::InitializeChromeMen
|
||||
.SetVisible(!sharing_hub::SharingIsDisabledByPolicy(profile))
|
||||
.Build());
|
||||
|
||||
@@ -316,7 +316,7 @@
|
||||
// TODO(crbug.com/435220196): Ideally this action would have
|
||||
// ChromeLabsCoordinator passed in as a dependency directly.
|
||||
if (IsChromeLabsEnabled() && !web_app::AppBrowserController::IsWebApp(bwi)) {
|
||||
@@ -1224,37 +964,6 @@ void BrowserActions::InitializeChromeMen
|
||||
@@ -1220,37 +960,6 @@ void BrowserActions::InitializeChromeMen
|
||||
.Build());
|
||||
}
|
||||
|
||||
|
||||
@@ -610,7 +610,7 @@
|
||||
gfx::ImageSkia AlertIndicatorButton::GetImageToPaint() {
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -220,7 +220,7 @@ bool IsTabGroupMenuMoreEntryPointsEnable
|
||||
@@ -202,7 +202,7 @@ bool IsTabGroupMenuMoreEntryPointsEnable
|
||||
return base::FeatureList::IsEnabled(kTabGroupMenuMoreEntryPoints);
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -106,6 +106,7 @@ helium/core/disable-unsupported-importers.patch
|
||||
helium/core/fix-building-without-safebrowsing.patch
|
||||
helium/core/services-prefs.patch
|
||||
helium/core/services-schema-nag.patch
|
||||
helium/core/connectivity-check.patch
|
||||
helium/core/override-chrome-protocol.patch
|
||||
helium/core/onboarding-page.patch
|
||||
helium/core/change-chromium-branding.patch
|
||||
@@ -195,7 +196,6 @@ helium/core/simplify-context-menu.patch
|
||||
helium/core/disable-pdf-infobar.patch
|
||||
helium/core/enable-screenshots.patch
|
||||
helium/core/enable-glow-up-features.patch
|
||||
helium/core/enable-bookmark-bar-settings.patch
|
||||
|
||||
helium/settings/settings-page-icons.patch
|
||||
helium/settings/move-search-suggest.patch
|
||||
@@ -314,4 +314,3 @@ helium/ui/hide-pip-live-caption-button.patch
|
||||
helium/ui/disable-ink-ripple-effect.patch
|
||||
helium/ui/dont-antialias-rects.patch
|
||||
helium/ui/fix-windows-ui-position.patch
|
||||
helium/ui/native-frame-materials.patch
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "base/feature_list.h"
|
||||
#include "base/types/to_address.h"
|
||||
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
|
||||
@@ -214,6 +215,10 @@ void BookmarkBarController::OnSplitTabCh
|
||||
@@ -208,6 +209,10 @@ void BookmarkBarController::OnSplitTabCh
|
||||
}
|
||||
|
||||
bool BookmarkBarController::ShouldShowBookmarkBar() const {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "extensions/buildflags/buildflags.h"
|
||||
#include "extensions/common/constants.h"
|
||||
#include "net/base/filename_util.h"
|
||||
@@ -1176,10 +1177,12 @@ DownloadConfirmationReason DownloadTarge
|
||||
@@ -1170,10 +1171,12 @@ DownloadConfirmationReason DownloadTarge
|
||||
return DownloadConfirmationReason::SAVE_AS;
|
||||
|
||||
#if BUILDFLAG(ENABLE_EXTENSIONS_CORE)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -4708,10 +4708,12 @@ const FeatureEntry::FeatureVariation kTo
|
||||
@@ -4698,10 +4698,12 @@ const FeatureEntry::FeatureVariation kCa
|
||||
#include "chrome/browser/ungoogled_flag_choices.h"
|
||||
#include "chrome/browser/bromite_flag_choices.h"
|
||||
#include "chrome/browser/ungoogled_platform_flag_choices.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -4704,7 +4704,13 @@ const FeatureEntry::FeatureVariation kTo
|
||||
@@ -4694,7 +4694,13 @@ const FeatureEntry::FeatureVariation kCa
|
||||
// calculate and verify checksum.
|
||||
//
|
||||
// When adding a new choice, add it to the end of the list.
|
||||
|
||||
@@ -825,7 +825,7 @@
|
||||
"//chrome/common",
|
||||
--- a/chrome/browser/ui/pdf/chrome_pdf_document_helper_client.cc
|
||||
+++ b/chrome/browser/ui/pdf/chrome_pdf_document_helper_client.cc
|
||||
@@ -152,22 +152,3 @@ void ChromePDFDocumentHelperClient::SetP
|
||||
@@ -146,22 +146,3 @@ void ChromePDFDocumentHelperClient::SetP
|
||||
}
|
||||
}
|
||||
|
||||
@@ -911,7 +911,7 @@
|
||||
std::make_unique<indigo::IndigoPageActionController>(
|
||||
--- a/chrome/browser/ui/views/user_education/browser_user_education_service.cc
|
||||
+++ b/chrome/browser/ui/views/user_education/browser_user_education_service.cc
|
||||
@@ -925,40 +925,6 @@ void MaybeRegisterChromeFeaturePromos(
|
||||
@@ -908,40 +908,6 @@ void MaybeRegisterChromeFeaturePromos(
|
||||
"Triggered when the PDF Viewer opens.")));
|
||||
#endif
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@
|
||||
using ConnectionType = net::NetworkChangeNotifier::ConnectionType;
|
||||
|
||||
#if BUILDFLAG(SAFE_BROWSING_DOWNLOAD_PROTECTION)
|
||||
@@ -2062,7 +2061,6 @@ void ChromeDownloadManagerDelegate::OnDo
|
||||
@@ -2046,7 +2045,6 @@ void ChromeDownloadManagerDelegate::OnDo
|
||||
DownloadItemModel model(item);
|
||||
model.DetermineAndSetShouldPreferOpeningInBrowser(
|
||||
target_info.target_path, target_info.is_filetype_handled_safely);
|
||||
@@ -176,7 +176,7 @@
|
||||
}
|
||||
if (ShouldBlockFile(item, target_info.danger_type)) {
|
||||
MaybeReportDangerousDownloadBlocked(
|
||||
@@ -2143,50 +2141,20 @@ bool ChromeDownloadManagerDelegate::IsOp
|
||||
@@ -2127,50 +2125,20 @@ bool ChromeDownloadManagerDelegate::IsOp
|
||||
bool ChromeDownloadManagerDelegate::ShouldBlockFile(
|
||||
download::DownloadItem* item,
|
||||
download::DownloadDangerType danger_type) const {
|
||||
@@ -233,7 +233,7 @@
|
||||
<< static_cast<int>(download_restriction);
|
||||
--- a/chrome/browser/download/download_target_determiner.cc
|
||||
+++ b/chrome/browser/download/download_target_determiner.cc
|
||||
@@ -1311,14 +1311,7 @@ DownloadFileType::DangerLevel DownloadTa
|
||||
@@ -1305,14 +1305,7 @@ DownloadFileType::DangerLevel DownloadTa
|
||||
|
||||
std::optional<base::Time>
|
||||
DownloadTargetDeterminer::GetLastDownloadBypassTimestamp() const {
|
||||
@@ -3541,7 +3541,7 @@
|
||||
void SSLBlockingPageBase::PopulateEnhancedProtectionMessage(
|
||||
--- a/components/sync_preferences/common_syncable_prefs_database.cc
|
||||
+++ b/components/sync_preferences/common_syncable_prefs_database.cc
|
||||
@@ -425,9 +425,6 @@ constexpr auto kCommonSyncablePrefsAllow
|
||||
@@ -424,9 +424,6 @@ constexpr auto kCommonSyncablePrefsAllow
|
||||
{plus_addresses::prefs::kLastPlusAddressFillingTime,
|
||||
{syncable_prefs_ids::kLastPlusAddressFillingTime, syncer::PREFERENCES,
|
||||
PrefSensitivity::kNone, MergeBehavior::kNone}},
|
||||
@@ -3643,7 +3643,7 @@
|
||||
|
||||
auto* rules_monitor_service =
|
||||
declarative_net_request::RulesMonitorService::Get(browser_context());
|
||||
@@ -249,13 +242,6 @@ DeclarativeNetRequestUpdateSessionRulesF
|
||||
@@ -248,13 +241,6 @@ DeclarativeNetRequestUpdateSessionRulesF
|
||||
return RespondNow(NoArguments());
|
||||
}
|
||||
|
||||
|
||||
@@ -11,29 +11,6 @@
|
||||
|
||||
using extensions::api::settings_private::Enforcement;
|
||||
using extensions::api::settings_private::PrefObject;
|
||||
--- a/chrome/browser/resources/settings/site_settings/v8_page.ts
|
||||
+++ b/chrome/browser/resources/settings/site_settings/v8_page.ts
|
||||
@@ -13,7 +13,6 @@ import {PrefsMixin} from '/shared/settin
|
||||
import {I18nMixin} from 'chrome://resources/cr_elements/i18n_mixin.js';
|
||||
import {PolymerElement} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
|
||||
|
||||
-import {SafeBrowsingSetting} from '../privacy_page/security/safe_browsing_types.js';
|
||||
import {SettingsViewMixin} from '../settings_page/settings_view_mixin.js';
|
||||
|
||||
import {ContentSettingsTypes, JavascriptOptimizerSetting} from './constants.js';
|
||||
@@ -56,11 +55,8 @@ export class V8PageElement extends V8Pag
|
||||
}
|
||||
|
||||
private getBlockForUnfamiliarSitesSubLabel_(): string {
|
||||
- const safeBrowsingSetting = this.getPref('generated.safe_browsing').value;
|
||||
return this.i18n(
|
||||
- safeBrowsingSetting === SafeBrowsingSetting.DISABLED
|
||||
- ? 'siteSettingsJavascriptOptimizerBlockedUnfamiliarSitesSafeBrowsingOffSubLabel'
|
||||
- : 'siteSettingsJavascriptOptimizerBlockedUnfamiliarSitesSubLabel');
|
||||
+ 'siteSettingsJavascriptOptimizerBlockedUnfamiliarSitesSubLabel');
|
||||
}
|
||||
}
|
||||
|
||||
--- a/chrome/browser/site_protection/site_familiarity_utils.cc
|
||||
+++ b/chrome/browser/site_protection/site_familiarity_utils.cc
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
@@ -7006,7 +7006,7 @@
|
||||
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
#include "base/win/windows_version.h"
|
||||
@@ -299,10 +298,6 @@ BASE_FEATURE(kEnableBoundSessionCredenti
|
||||
@@ -292,10 +291,6 @@ BASE_FEATURE(kEnableBoundSessionCredenti
|
||||
#endif
|
||||
);
|
||||
bool IsBoundSessionCredentialsEnabled(const PrefService* profile_prefs) {
|
||||
@@ -7017,7 +7017,7 @@
|
||||
return base::FeatureList::IsEnabled(kEnableBoundSessionCredentials);
|
||||
}
|
||||
// Restricts the DBSC registration URL path to a single allowed string.
|
||||
@@ -323,10 +318,6 @@ BASE_FEATURE(kEnableChromeRefreshTokenBi
|
||||
@@ -316,10 +311,6 @@ BASE_FEATURE(kEnableChromeRefreshTokenBi
|
||||
#endif
|
||||
);
|
||||
bool IsChromeRefreshTokenBindingEnabled(const PrefService* profile_prefs) {
|
||||
@@ -7186,7 +7186,7 @@
|
||||
// kSyncedDefaultSearchProviderGUID = 49, (deprecated)
|
||||
kPrefForceTriggerTranslateCount = 50,
|
||||
// kPrefNeverPromptSitesDeprecated = 51, (deprecated)
|
||||
@@ -300,10 +297,6 @@ constexpr auto kCommonSyncablePrefsAllow
|
||||
@@ -299,10 +296,6 @@ constexpr auto kCommonSyncablePrefsAllow
|
||||
{payments::kCanMakePaymentEnabled,
|
||||
{syncable_prefs_ids::kCanMakePaymentEnabled, syncer::PREFERENCES,
|
||||
PrefSensitivity::kNone, MergeBehavior::kNone}},
|
||||
@@ -7197,7 +7197,7 @@
|
||||
{prefs::kCookieControlsMode,
|
||||
{syncable_prefs_ids::kCookieControlsMode, syncer::PREFERENCES,
|
||||
PrefSensitivity::kNone, MergeBehavior::kNone}},
|
||||
@@ -339,9 +332,6 @@ constexpr auto kCommonSyncablePrefsAllow
|
||||
@@ -338,9 +331,6 @@ constexpr auto kCommonSyncablePrefsAllow
|
||||
{syncable_prefs_ids::kCrossDeviceTipsHomeModuleEnabled,
|
||||
syncer::PREFERENCES, PrefSensitivity::kNone,
|
||||
MergeBehavior::kMergeableDict}},
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
5
|
||||
2
|
||||
|
||||
Reference in New Issue
Block a user