Files
brave-core/patches/chrome-browser-ui-webui-theme_source.cc.patch
T
Claudio DeSouza ebd4150618 [cr149] Correcting ntp_pref_names.h due to Android NTP
This change corrects the inclusion of this header everywhere, but it
also fixes one of the patches that were broken recently due to this
change.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/42937e4ba2e5d383daf6f0e057f5fe530ac1a451

commit 42937e4ba2e5d383daf6f0e057f5fe530ac1a451
Author: Andrew Grieve <agrieve@chromium.org>
Date:   Fri May 1 06:38:05 2026 -0700

    Initial prototype of WebUI NTP for Android

    It only barely works, but sets the groundwork so that we can iterate
    on the missing / broken functionality.

    All changes are guarded behind GN arg: enable_webui_ntp, and also
    behind a runtime flag: --use-webui-ntp.

    This does not remove the native NTP, but instead navigates to:
      chrome://new-tab-page/
    instead of:
      chrome-native://newtab/

    Bug: b:502297163
    Bypass-Check-License: Moved file
    Change-Id: If5e535793fa20f67d8897aee2d6bf55e95af2fce
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7773408
    Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
    Reviewed-by: Thomas Lukaszewicz <tluk@chromium.org>
    Owners-Override: Andrew Grieve <agrieve@chromium.org>
    Reviewed-by: Ken Buchanan <kenrb@chromium.org>
    Commit-Queue: Andrew Grieve <agrieve@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1623798}
2026-05-22 16:57:33 -04:00

13 lines
605 B
Diff

diff --git a/chrome/browser/ui/webui/theme_source.cc b/chrome/browser/ui/webui/theme_source.cc
index 1aaa1ee6374763e5ef4c77eb360a988cc23f8d9e..14082a7fd1f6ddbdf7aa85fdbb20071e4e6397c5 100644
--- a/chrome/browser/ui/webui/theme_source.cc
+++ b/chrome/browser/ui/webui/theme_source.cc
@@ -378,6 +378,7 @@ void ThemeSource::SendColorsCss(
#else
const auto* theme_service =
ThemeServiceFactory::GetForProfile(profile_->GetOriginalProfile());
+ BRAVE_THEME_SOURCE_SEND_COLORS_CSS
bool is_grayscale = theme_service->GetIsGrayscale();
bool is_baseline = theme_service->GetIsBaseline();
#endif