summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser.cc
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-26 08:38:20 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-26 08:38:20 +0000
commit5b826c25f6a69dcb8bca0d7ba2aab42915f97ee4 (patch)
treeb7bc15107b7c49c80a6f41e0fb3c6dee1870d727 /chrome/browser/ui/browser.cc
parente578937e553a464c616f1ee5c8781c9f6036838d (diff)
downloadchromium_src-5b826c25f6a69dcb8bca0d7ba2aab42915f97ee4.zip
chromium_src-5b826c25f6a69dcb8bca0d7ba2aab42915f97ee4.tar.gz
chromium_src-5b826c25f6a69dcb8bca0d7ba2aab42915f97ee4.tar.bz2
Turn on better popup blocker by default.
Can be turned off by --disable-better-popup-blocking BUG=38458 R=marja@chromium.org Review URL: https://codereview.chromium.org/20209004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213802 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser.cc')
-rw-r--r--chrome/browser/ui/browser.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 6f3e39a..41792d1 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1284,8 +1284,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 ||
@@ -1504,8 +1504,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;
}