mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 127.0.6533.0 (#1313161)
This commit is contained in:
@ -29,7 +29,6 @@
|
||||
#include "services/network/public/cpp/resolve_host_client_base.h"
|
||||
#include "services/network/public/mojom/clear_data_filter.mojom.h"
|
||||
#include "services/network/public/mojom/network_context.mojom.h"
|
||||
#include "ui/base/ui_base_features.h"
|
||||
|
||||
using content::BrowserThread;
|
||||
|
||||
@ -1029,12 +1028,8 @@ void CefRequestContextImpl::SetChromeColorSchemeInternal(
|
||||
if (current_color) {
|
||||
// User color is not currently transparent.
|
||||
// Based on ThemeColorPickerHandler::SetDefaultColor.
|
||||
if (features::IsChromeWebuiRefresh2023()) {
|
||||
theme_service->SetUserColor(SK_ColorTRANSPARENT);
|
||||
theme_service->UseDeviceTheme(false);
|
||||
} else {
|
||||
theme_service->UseDefaultTheme();
|
||||
}
|
||||
theme_service->SetUserColor(SK_ColorTRANSPARENT);
|
||||
theme_service->UseDeviceTheme(false);
|
||||
}
|
||||
} else {
|
||||
ui::mojom::BrowserColorVariant ui_variant;
|
||||
@ -1060,13 +1055,8 @@ void CefRequestContextImpl::SetChromeColorSchemeInternal(
|
||||
ui_variant != theme_service->GetBrowserColorVariant()) {
|
||||
// User color and/or variant has changed.
|
||||
// Based on ThemeColorPickerHandler::SetSeedColor.
|
||||
if (features::IsChromeWebuiRefresh2023()) {
|
||||
theme_service->SetUserColorAndBrowserColorVariant(user_color,
|
||||
ui_variant);
|
||||
theme_service->UseDeviceTheme(false);
|
||||
} else {
|
||||
theme_service->BuildAutogeneratedThemeFromColor(user_color);
|
||||
}
|
||||
theme_service->SetUserColorAndBrowserColorVariant(user_color, ui_variant);
|
||||
theme_service->UseDeviceTheme(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user