mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
fix: compilation failure after chromium upgrade (#19787)
This commit is contained in:
@@ -105,12 +105,9 @@ void ToDictionary(gin::Dictionary* details, extensions::WebRequestInfo* info) {
|
||||
details->Set("url", info->url);
|
||||
details->Set("method", info->method);
|
||||
details->Set("timestamp", base::Time::Now().ToDoubleT() * 1000);
|
||||
details->Set("resourceType", info->type);
|
||||
if (!info->response_ip.empty())
|
||||
details->Set("ip", info->response_ip);
|
||||
if (info->type.has_value())
|
||||
details->Set("resourceType", info->type.value());
|
||||
else
|
||||
details->Set("resourceType", base::StringPiece("other"));
|
||||
if (info->response_headers) {
|
||||
details->Set("fromCache", info->response_from_cache);
|
||||
details->Set("responseHeaders", info->response_headers.get());
|
||||
|
||||
@@ -29,7 +29,7 @@ void NativeTheme::OnNativeThemeUpdated(ui::NativeTheme* theme) {
|
||||
}
|
||||
|
||||
bool NativeTheme::ShouldUseDarkColors() {
|
||||
return theme_->SystemDarkModeEnabled();
|
||||
return theme_->ShouldUseDarkColors();
|
||||
}
|
||||
|
||||
bool NativeTheme::ShouldUseHighContrastColors() {
|
||||
|
||||
Reference in New Issue
Block a user