Index: chrome/browser/browsing_instance.cc |
diff --git a/chrome/browser/browsing_instance.cc b/chrome/browser/browsing_instance.cc |
index 527feb1a310c3e3cd42ae73c76c33eaed7d82126..f15decae687e9b6db174b24e91ad8e07a02f3c12 100644 |
--- a/chrome/browser/browsing_instance.cc |
+++ b/chrome/browser/browsing_instance.cc |
@@ -17,10 +17,11 @@ bool BrowsingInstance::ShouldUseProcessPerSite(const GURL& url) { |
// the case if the --process-per-site switch is specified, or in |
// process-per-site-instance for particular sites (e.g., the new tab page). |
- if (CommandLine().HasSwitch(switches::kProcessPerSite)) |
+ const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
+ if (command_line.HasSwitch(switches::kProcessPerSite)) |
return true; |
- if (!CommandLine().HasSwitch(switches::kProcessPerTab)) { |
+ 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 |
// logic for particular sites that we want to consolidate. |