From d6605193a1e0355eb053cd15c55c7c20b5c4bb8c Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Wed, 31 Jul 2019 14:34:04 +0200 Subject: [PATCH] build: fix with ENABLE_OSR disabled (#19533) --- shell/browser/api/atom_api_web_contents.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/api/atom_api_web_contents.cc b/shell/browser/api/atom_api_web_contents.cc index cc84fad406e6..876f728f8f44 100644 --- a/shell/browser/api/atom_api_web_contents.cc +++ b/shell/browser/api/atom_api_web_contents.cc @@ -348,8 +348,8 @@ WebContents::WebContents(v8::Isolate* isolate, const mate::Dictionary& options) // Get type options.Get("type", &type_); - bool b = false; #if BUILDFLAG(ENABLE_OSR) + bool b = false; if (options.Get(options::kOffscreen, &b) && b) type_ = Type::OFF_SCREEN; #endif