diff --git a/browser/api/atom_api_menu.cc b/browser/api/atom_api_menu.cc
index 3c82c58f71cd..43406666e93f 100644
--- a/browser/api/atom_api_menu.cc
+++ b/browser/api/atom_api_menu.cc
@@ -4,10 +4,30 @@
#include "browser/api/atom_api_menu.h"
+#define UNWRAP_MEMNU_AND_CHECK \
+ Menu* self = ObjectWrap::Unwrap