summaryrefslogtreecommitdiffstats
path: root/chrome/browser/blocked_popup_container.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-26 20:19:29 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-26 20:19:29 +0000
commit7e7414aeab90afaeeb7b29cfde1ce19d90529a37 (patch)
tree4d3d5176a7c90204ae336753fef127dff1ce380f /chrome/browser/blocked_popup_container.cc
parent62299d40f271bfaae651f8dcfea4da8170a7bc14 (diff)
downloadchromium_src-7e7414aeab90afaeeb7b29cfde1ce19d90529a37.zip
chromium_src-7e7414aeab90afaeeb7b29cfde1ce19d90529a37.tar.gz
chromium_src-7e7414aeab90afaeeb7b29cfde1ce19d90529a37.tar.bz2
Associate popups with the top level frame instead of the security origin.
No longer send the creator from the renderer to the browser since this was all it was used for. BUG=none TEST=none Review URL: http://codereview.chromium.org/543199 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37143 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/blocked_popup_container.cc')
-rw-r--r--chrome/browser/blocked_popup_container.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/blocked_popup_container.cc b/chrome/browser/blocked_popup_container.cc
index bf7a08a..cb48a98 100644
--- a/chrome/browser/blocked_popup_container.cc
+++ b/chrome/browser/blocked_popup_container.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in the
// LICENSE file.
@@ -44,7 +44,7 @@ void BlockedPopupContainer::AddTabContents(TabContents* tab_contents,
// Show whitelisted popups immediately.
bool whitelisted = !!whitelist_.count(host);
if (whitelisted)
- owner_->AddNewContents(tab_contents, NEW_POPUP, bounds, true, GURL());
+ owner_->AddNewContents(tab_contents, NEW_POPUP, bounds, true);
if (has_been_dismissed_) {
// Don't want to show any other UI.
@@ -91,7 +91,7 @@ void BlockedPopupContainer::LaunchPopupAtIndex(size_t index) {
BlockedPopups::iterator i(blocked_popups_.begin() + index);
TabContents* tab_contents = i->tab_contents;
tab_contents->set_delegate(NULL);
- owner_->AddNewContents(tab_contents, NEW_POPUP, i->bounds, true, GURL());
+ owner_->AddNewContents(tab_contents, NEW_POPUP, i->bounds, true);
const std::string& host = i->host;
if (!host.empty()) {
@@ -254,7 +254,7 @@ void BlockedPopupContainer::AddNewContents(TabContents* source,
const gfx::Rect& initial_position,
bool user_gesture) {
owner_->AddNewContents(new_contents, disposition, initial_position,
- user_gesture, GURL());
+ user_gesture);
}
void BlockedPopupContainer::CloseContents(TabContents* source) {