| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 76a2810a30d0ab73dd6debbc94ed4b0f60bb9c44..2f983f5ae8fa8d7828be6534e6b22276233f744a 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -1280,8 +1280,8 @@ WebContents* Browser::OpenURLFromTab(WebContents* source,
|
| if (source)
|
| popup_blocker_helper = PopupBlockerTabHelper::FromWebContents(source);
|
|
|
| - if (CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kEnableBetterPopupBlocking) &&
|
| + if (!CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kDisableBetterPopupBlocking) &&
|
| popup_blocker_helper) {
|
|
|
| if ((params.disposition == NEW_POPUP ||
|
| @@ -1500,8 +1500,8 @@ bool Browser::ShouldCreateWebContents(
|
| route_id, web_contents, frame_name, target_url);
|
| }
|
|
|
| - if (!CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kEnableBetterPopupBlocking)) {
|
| + if (CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kDisableBetterPopupBlocking)) {
|
| return true;
|
| }
|
|
|
|
|