Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
Signed-off-by: Vadym Struts <[email protected]>
  • Loading branch information
vadimstruts committed Dec 16, 2024
1 parent 5e79e18 commit 828afc3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions browser/about_flags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,7 @@
{ \
"block-element-feature", \
"Enable Block Element feature", \
"Allows to block sekected HTML element on the page" \
"marked as a known threat.", \
"Allows to block selected HTML element on the page", \
kOsAll, \
FEATURE_VALUE_TYPE( \
brave_shields::features::kBraveShieldsElementPicker), \
Expand Down
8 changes: 5 additions & 3 deletions browser/cosmetic_filters/cosmetic_filters_tab_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ void CosmeticFiltersTabHelper::GetElementPickerThemeInfo(
GetWebContents().GetColorMode() == ui::ColorProviderKey::ColorMode::kDark,
color_provider.GetColor(kColorSidePanelBadgeBackground));
#else // !BUILDFLAG(IS_ANDROID)
std::move(callback).Run(chrome::android::GetDarkModeState() ==
chrome::android::DarkModeState::kDarkModeSystem,
GetThemeBackgroundColor());
const auto dark_mode_state = chrome::android::GetDarkModeState();
std::move(callback).Run(
dark_mode_state == chrome::android::DarkModeState::kDarkModeSystem ||
dark_mode_state == chrome::android::DarkModeState::kDarkModeApp,
GetThemeBackgroundColor());
#endif // !BUILDFLAG(IS_ANDROID)
}

Expand Down
2 changes: 1 addition & 1 deletion components/cosmetic_filters/common/cosmetic_filters.mojom
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface CosmeticFiltersHandler {
ManageCustomFilters();

GetElementPickerThemeInfo() => (
bool is_nightly_mode_enabled, int32 background_color);
bool is_dark_mode_enabled, int32 background_color);
};

// An interface to render frame agent `CosmeticFiltersJSHandler` to control
Expand Down

0 comments on commit 828afc3

Please sign in to comment.