| Index: chrome/browser/ui/blocked_content/blocked_content_tab_helper.cc
|
| ===================================================================
|
| --- chrome/browser/ui/blocked_content/blocked_content_tab_helper.cc (revision 153532)
|
| +++ chrome/browser/ui/blocked_content/blocked_content_tab_helper.cc (working copy)
|
| @@ -88,6 +88,7 @@
|
| }
|
|
|
| void BlockedContentTabHelper::AddPopup(TabContents* new_contents,
|
| + WindowOpenDisposition disposition,
|
| const gfx::Rect& initial_pos,
|
| bool user_gesture) {
|
| // A page can't spawn popups (or do anything else, either) until its load
|
| @@ -110,7 +111,7 @@
|
| CONTENT_SETTINGS_TYPE_POPUPS,
|
| "") == CONTENT_SETTING_ALLOW) {
|
| web_contents()->AddNewContents(new_contents->web_contents(),
|
| - NEW_POPUP,
|
| + disposition,
|
| initial_pos,
|
| true); // user_gesture
|
| } else {
|
| @@ -118,7 +119,7 @@
|
| // so that the contents will not get blocked again.
|
| SendNotification(new_contents, true);
|
| blocked_contents_->AddTabContents(new_contents,
|
| - NEW_POPUP,
|
| + disposition,
|
| initial_pos,
|
| true); // user_gesture
|
| tab_contents_->content_settings()->OnContentBlocked(
|
|
|