diff options
author | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-07 23:44:00 +0000 |
---|---|---|
committer | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-07 23:44:00 +0000 |
commit | eda238a1f264b36245da55d7f64ae55ebec7666a (patch) | |
tree | de71d2791e9f61cce288f66ff68a821a97475729 /ui/web_dialogs | |
parent | 1a39d73e551b07893d3b7cecb3ef3ac4871d105b (diff) | |
download | chromium_src-eda238a1f264b36245da55d7f64ae55ebec7666a.zip chromium_src-eda238a1f264b36245da55d7f64ae55ebec7666a.tar.gz chromium_src-eda238a1f264b36245da55d7f64ae55ebec7666a.tar.bz2 |
Pass result of blockage across content API when new tab blocked. This change allows the proper blockage of foreground tabs created without user-gestures for rel=noreferrer links.
BUG=118317
Review URL: https://chromiumcodereview.appspot.com/10868116
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155535 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/web_dialogs')
-rw-r--r-- | ui/web_dialogs/web_dialog_web_contents_delegate.cc | 3 | ||||
-rw-r--r-- | ui/web_dialogs/web_dialog_web_contents_delegate.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ui/web_dialogs/web_dialog_web_contents_delegate.cc b/ui/web_dialogs/web_dialog_web_contents_delegate.cc index 19d97a5..fbed22b 100644 --- a/ui/web_dialogs/web_dialog_web_contents_delegate.cc +++ b/ui/web_dialogs/web_dialog_web_contents_delegate.cc @@ -42,7 +42,8 @@ WebContents* WebDialogWebContentsDelegate::OpenURLFromTab( void WebDialogWebContentsDelegate::AddNewContents( WebContents* source, WebContents* new_contents, WindowOpenDisposition disposition, const gfx::Rect& initial_pos, - bool user_gesture) { + bool user_gesture, + bool* was_blocked) { handler_->AddNewContents(browser_context_, source, new_contents, disposition, initial_pos, user_gesture); } diff --git a/ui/web_dialogs/web_dialog_web_contents_delegate.h b/ui/web_dialogs/web_dialog_web_contents_delegate.h index e7965c9..bbe3ba8 100644 --- a/ui/web_dialogs/web_dialog_web_contents_delegate.h +++ b/ui/web_dialogs/web_dialog_web_contents_delegate.h @@ -61,7 +61,8 @@ class WEB_DIALOGS_EXPORT WebDialogWebContentsDelegate content::WebContents* new_contents, WindowOpenDisposition disposition, const gfx::Rect& initial_pos, - bool user_gesture) OVERRIDE; + bool user_gesture, + bool* was_blocked) OVERRIDE; virtual bool IsPopupOrPanel( const content::WebContents* source) const OVERRIDE; virtual bool ShouldAddNavigationToHistory( |