fix: check DCHECK_IS_ON() instead of #ifdef DCHECK_IS_ON (#29620)
This commit is contained in:
parent
fed5ad5303
commit
34a4e26b24
6 changed files with 8 additions and 8 deletions
|
@ -127,7 +127,7 @@ void MenuMac::ClosePopupAt(int32_t window_id) {
|
|||
std::move(close_popup));
|
||||
}
|
||||
|
||||
#ifdef DCHECK_IS_ON
|
||||
#if DCHECK_IS_ON()
|
||||
std::u16string MenuMac::GetAcceleratorTextAtForTesting(int index) const {
|
||||
// A least effort to get the real shortcut text of NSMenuItem, the code does
|
||||
// not need to be perfect since it is test only.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue