diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index f05b70c50f49..b0927ee57298 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -1095,7 +1095,7 @@ void WebContents::StopFindInPage(content::StopFindAction action) { } void WebContents::ShowDefinitionForSelection() { -#if defined(OS_WIN) +#if defined(OS_MACOSX) const auto view = web_contents()->GetRenderWidgetHostView(); if (view) view->ShowDefinitionForSelection();