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
|
@ -236,7 +236,7 @@ std::u16string Menu::GetToolTipAt(int index) const {
|
|||
return model_->GetToolTipAt(index);
|
||||
}
|
||||
|
||||
#ifdef DCHECK_IS_ON
|
||||
#if DCHECK_IS_ON()
|
||||
std::u16string Menu::GetAcceleratorTextAtForTesting(int index) const {
|
||||
ui::Accelerator accelerator;
|
||||
model_->GetAcceleratorAtWithParams(index, true, &accelerator);
|
||||
|
@ -297,7 +297,7 @@ v8::Local<v8::ObjectTemplate> Menu::FillObjectTemplate(
|
|||
.SetMethod("isVisibleAt", &Menu::IsVisibleAt)
|
||||
.SetMethod("popupAt", &Menu::PopupAt)
|
||||
.SetMethod("closePopupAt", &Menu::ClosePopupAt)
|
||||
#ifdef DCHECK_IS_ON
|
||||
#if DCHECK_IS_ON()
|
||||
.SetMethod("getAcceleratorTextAt", &Menu::GetAcceleratorTextAtForTesting)
|
||||
#endif
|
||||
.Build();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue