Chromium Code Reviews| Index: chrome/browser/tab_contents/render_view_host_manager.cc |
| =================================================================== |
| --- chrome/browser/tab_contents/render_view_host_manager.cc (revision 70598) |
| +++ chrome/browser/tab_contents/render_view_host_manager.cc (working copy) |
| @@ -298,6 +298,11 @@ |
| // into the same process. |
| if (new_entry->url().SchemeIs(chrome::kExtensionScheme)) |
| return true; |
| + // When a tab is created, it starts as TYPE_NORMAL. If the new entry is a |
| + // DOM UI page, it needs to run in a different process. This matches the |
|
Charlie Reis
2011/01/06 18:27:59
Nit: "it needs to be grouped with other DOM UI pag
klobag.chromium
2011/01/06 20:23:02
Done.
|
| + // logic when transition between DOM UI and normal pages. |
|
Charlie Reis
2011/01/06 18:27:59
Nit: transitioning
klobag.chromium
2011/01/06 20:23:02
Done.
|
| + if (new_entry->url().SchemeIs(chrome::kChromeUIScheme)) |
|
Charlie Reis
2011/01/06 18:27:59
I think we want to use DOMUIFactory::UseDOMUIForUR
klobag.chromium
2011/01/06 20:23:02
Done.
|
| + return true; |
| return false; |
| } |