From eda238a1f264b36245da55d7f64ae55ebec7666a Mon Sep 17 00:00:00 2001 From: "tsepez@chromium.org" Date: Fri, 7 Sep 2012 23:44:00 +0000 Subject: 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 --- ui/web_dialogs/web_dialog_web_contents_delegate.cc | 3 ++- ui/web_dialogs/web_dialog_web_contents_delegate.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'ui/web_dialogs') 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( -- cgit v1.1