fix segfault

This commit is contained in:
Alexander Frick 2024-02-29 21:23:22 -06:00
parent 9b94053453
commit dcd54d4607
2 changed files with 3 additions and 4 deletions

View file

@ -32,9 +32,6 @@
// ReloadButton ---------------------------------------------------------------
static const bool disable_thorium_icons =
base::CommandLine::ForCurrentProcess()->HasSwitch("disable-thorium-icons");
ReloadButton::ReloadButton(CommandUpdater* command_updater)
: ToolbarButton(base::BindRepeating(&ReloadButton::ButtonPressed,
base::Unretained(this)),
@ -43,7 +40,7 @@ ReloadButton::ReloadButton(CommandUpdater* command_updater)
command_updater_(command_updater),
reload_icon_(features::IsChromeRefresh2023()
? vector_icons::kReloadChromeRefreshIcon
: disable_thorium_icons ? vector_icons::kReloadIcon
: base::CommandLine::ForCurrentProcess()->HasSwitch("disable-thorium-icons") ? vector_icons::kReloadIcon
: vector_icons::kReloadThoriumIcon),
reload_touch_icon_(kReloadTouchIcon),
stop_icon_(features::IsChromeRefresh2023()

View file

@ -10,6 +10,7 @@
#define FPL FILE_PATH_LITERAL
#if BUILDFLAG(IS_MAC)
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
#define PRODUCT_STRING "Google Chrome"
#elif BUILDFLAG(GOOGLE_CHROME_FOR_TESTING_BRANDING)
@ -19,6 +20,7 @@
#else
#error Unknown branding
#endif
#endif // BUILDFLAG(IS_MAC)
namespace chrome {