Chromium Code Reviews| Index: chrome/browser/browsing_instance.cc |
| =================================================================== |
| --- chrome/browser/browsing_instance.cc (revision 70598) |
| +++ chrome/browser/browsing_instance.cc (working copy) |
| @@ -34,6 +34,12 @@ |
| return true; |
| } |
| + if (url.SchemeIs(chrome::kChromeUIScheme)) { |
|
Charlie Reis
2011/01/06 18:27:59
I think we may have had a bug before-- should this
klobag.chromium
2011/01/06 20:23:02
Done.
|
| + // Always consolidate instances of the new tab page (and instances of any |
| + // other internal resource urls. |
| + return true; |
| + } |
| + |
| if (!command_line.HasSwitch(switches::kProcessPerTab)) { |
| // We are not in process-per-site or process-per-tab, so we must be in the |
| // default (process-per-site-instance). Only use the process-per-site |
| @@ -41,10 +47,6 @@ |
| // Note that --single-process may have been specified, but that affects the |
| // process creation logic in RenderProcessHost, so we do not need to worry |
| // about it here. |
|
Charlie Reis
2011/01/06 18:27:59
This comment and the one below assume that the pro
klobag.chromium
2011/01/06 20:23:02
Done.
Charlie Reis
2011/01/06 21:00:20
Actually, it looks like the comments are gone now.
|
| - if (url.SchemeIs(chrome::kChromeUIScheme)) |
| - // Always consolidate instances of the new tab page (and instances of any |
| - // other internal resource urls. |
| - return true; |
| // TODO(creis): List any other special cases that we want to limit to a |
| // single process for all instances. |