Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3769)

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 8520019: Don't allow the task manager to share a process with anything else. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 3853866cc2885f82e2853c3384b73dba49582390..04d0a03c4772a53e9af424097d6483a068ed7975 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -398,6 +398,14 @@ bool ChromeContentBrowserClient::IsSuitableHost(
ExtensionService* service = profile->GetExtensionService();
extensions::ProcessMap* process_map = service->process_map();
+ // Don't allow the Task Manager to share a process with anything else.
awong 2011/11/15 20:23:43 Can we say "anything else, including other Task Ma
Charlie Reis 2011/11/15 20:28:38 If we actually want to enforce that, we would also
+ // Otherwise it can affect the renderers it is observing.
+ // Note: we could create another RenderProcessHostPrivilege bucket for
+ // this to allow multiple chrome://tasks instances to share, but that's
+ // a very unlikely case without serious consequences.
+ if (site_url == GURL(chrome::kChromeUITaskManagerURL))
Aaron Boodman 2011/11/15 21:08:37 Nit: This kind of thing always makes me nervous. I
Charlie Reis 2011/11/15 21:29:48 Yeah, I agree that would be more robust. Fixed.
+ return false;
+
// These may be NULL during tests. In that case, just assume any site can
// share any host.
if (!service || !process_map)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698