File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -721,7 +721,8 @@ NwCurrentWindowInternalReloadIgnoringCacheFunction::Run() {
721
721
722
722
bool NwCurrentWindowInternalGetZoomFunction::RunNWSync (base::ListValue* response, std::string* error) {
723
723
content::WebContents* web_contents = GetSenderWebContents ();
724
- if (args_->GetSize () > 0 ) {
724
+ if (base::FeatureList::IsEnabled (::features::kNWNewWin ) &&
725
+ args_->GetSize () > 0 ) {
725
726
int id = 0 ;
726
727
args_->GetInteger (0 , &id);
727
728
Browser* browser = getBrowser (this , id);
@@ -744,7 +745,8 @@ bool NwCurrentWindowInternalSetZoomFunction::RunNWSync(base::ListValue* response
744
745
745
746
EXTENSION_FUNCTION_VALIDATE (args_->GetDouble (0 , &zoom_level));
746
747
content::WebContents* web_contents = GetSenderWebContents ();
747
- if (args_->GetSize () > 1 ) {
748
+ if (base::FeatureList::IsEnabled (::features::kNWNewWin ) &&
749
+ args_->GetSize () > 1 ) {
748
750
int id = 0 ;
749
751
args_->GetInteger (1 , &id);
750
752
Browser* browser = getBrowser (this , id);
You can’t perform that action at this time.
0 commit comments