summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/tab_contents_view.cc
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-03 17:57:44 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-03 17:57:44 +0000
commitc2e74fe834afaeed3bf8d21034bb995437518843 (patch)
treec9b3876a00bbbb78984b619246a4069ded4c1664 /chrome/browser/tab_contents/tab_contents_view.cc
parent3f7116cf4b4e725cc43c7331fed6cd1a1b03bc96 (diff)
downloadchromium_src-c2e74fe834afaeed3bf8d21034bb995437518843.zip
chromium_src-c2e74fe834afaeed3bf8d21034bb995437518843.tar.gz
chromium_src-c2e74fe834afaeed3bf8d21034bb995437518843.tar.bz2
Revert "Revert "Allow DOMUI pages to call window.open(), giving DOMUI privileges to the new""
Second attempt at r25250. The tests were broken in Release mode due to a race. Should be fixed. BUG=17636 Review URL: http://codereview.chromium.org/172120 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25329 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents_view.cc')
-rw-r--r--chrome/browser/tab_contents/tab_contents_view.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_view.cc b/chrome/browser/tab_contents/tab_contents_view.cc
index 78d084a..ecdf697 100644
--- a/chrome/browser/tab_contents/tab_contents_view.cc
+++ b/chrome/browser/tab_contents/tab_contents_view.cc
@@ -32,9 +32,10 @@ void TabContentsView::UpdatePreferredWidth(int pref_width) {
void TabContentsView::CreateNewWindow(int route_id,
base::WaitableEvent* modal_dialog_event) {
- delegate_view_helper_.CreateNewWindow(route_id, modal_dialog_event,
- tab_contents_->profile(),
- tab_contents_->GetSiteInstance());
+ delegate_view_helper_.CreateNewWindow(
+ route_id, modal_dialog_event,
+ tab_contents_->profile(), tab_contents_->GetSiteInstance(),
+ DOMUIFactory::GetDOMUIType(tab_contents_->GetURL()));
}
void TabContentsView::CreateNewWidget(int route_id, bool activatable) {