mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 19:37:30 -03:00
fix segfault
This commit is contained in:
parent
9b94053453
commit
dcd54d4607
2 changed files with 3 additions and 4 deletions
|
@ -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()
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in a new issue