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