diff --git a/atom/browser/native_window.cc b/atom/browser/native_window.cc index ab7e1084924c..b008739709c6 100644 --- a/atom/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -576,11 +576,11 @@ void NativeWindow::NotifyWindowExecuteWindowsCommand( } void NativeWindow::NotifyTouchBarItemInteraction( - const std::string& type, - const std::vector& args) { - FOR_EACH_OBSERVER(NativeWindowObserver, observers_, - OnTouchBarItemResult(type, args)); - } + const std::string& type, + const std::vector& args) { + for (NativeWindowObserver& observer : observers_) + observer.OnTouchBarItemResult(type, args); +} #if defined(OS_WIN) void NativeWindow::NotifyWindowMessage(