diff options
Diffstat (limited to 'chrome/browser/tab_contents.cc')
-rw-r--r-- | chrome/browser/tab_contents.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/chrome/browser/tab_contents.cc b/chrome/browser/tab_contents.cc index 7f6c9e8..24bae60 100644 --- a/chrome/browser/tab_contents.cc +++ b/chrome/browser/tab_contents.cc @@ -234,15 +234,7 @@ void TabContents::AddNewContents(TabContents* new_contents, if ((disposition == NEW_POPUP) && !delegate_->IsPopup(this)) { if (user_gesture) { - // TODO(erg): Need a better policy about initial placement of - // popup windows. - gfx::Rect initial_bounds = initial_pos; - if (initial_bounds.x() == 0 || initial_bounds.y() == 0) { - ConstrainedWindow::GenerateInitialBounds( - initial_pos, this, &initial_bounds); - } - - delegate_->AddNewContents(this, new_contents, disposition, initial_bounds, + delegate_->AddNewContents(this, new_contents, disposition, initial_pos, user_gesture); } else { AddConstrainedPopup(new_contents, initial_pos); |