Require !OS_MACOSX as well as TOOLKIT_VIEWS for views code

This commit is contained in:
Jeremy Apthorp 2018-05-10 13:52:17 -07:00
parent 1cc5492784
commit 87d0175c76
4 changed files with 9 additions and 9 deletions

View file

@ -178,7 +178,7 @@ void CommonWebContentsDelegate::SetOwnerWindow(
auto relay = std::make_unique<NativeWindowRelay>(owner_window_);
auto* relay_key = relay->key;
if (owner_window) {
#if defined(TOOLKIT_VIEWS)
#if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX)
autofill_popup_.reset(new AutofillPopup());
#endif
web_contents->SetUserData(relay_key, std::move(relay));