| Index: chrome/browser/tab_contents/tab_contents.cc
|
| diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
|
| index a21ea8f5e108173529fb7ba2572bf9b8193d142d..e6bbe98b1b3069b1e60f37da50e388671e97a5c0 100644
|
| --- a/chrome/browser/tab_contents/tab_contents.cc
|
| +++ b/chrome/browser/tab_contents/tab_contents.cc
|
| @@ -857,7 +857,7 @@ bool TabContents::NavigateToPendingEntry(
|
| // to a DOM UI renderer. Double check that here.
|
| int enabled_bindings = dest_render_view_host->enabled_bindings();
|
| bool is_allowed_in_dom_ui_renderer =
|
| - DOMUIFactory::UseDOMUIForURL(entry.url()) ||
|
| + DOMUIFactory::UseDOMUIForURL(profile(), entry.url()) ||
|
| entry.url() == GURL(chrome::kAboutBlankURL);
|
| CHECK(!BindingsPolicy::is_dom_ui_enabled(enabled_bindings) ||
|
| is_allowed_in_dom_ui_renderer);
|
| @@ -1603,7 +1603,8 @@ void TabContents::DidNavigateMainFramePostCommit(
|
| // If this is a window.open navigation, use the same DOMUI as the renderer
|
| // that opened the window, as long as both renderers have the same
|
| // privileges.
|
| - if (opener_dom_ui_type_ == DOMUIFactory::GetDOMUIType(GetURL())) {
|
| + if (opener_dom_ui_type_ ==
|
| + DOMUIFactory::GetDOMUIType(profile(), GetURL())) {
|
| DOMUI* dom_ui = DOMUIFactory::CreateDOMUIForURL(this, GetURL());
|
| // dom_ui might be NULL if the URL refers to a non-existent extension.
|
| if (dom_ui) {
|
|
|