Index: chrome/browser/extensions/user_script_master.cc |
diff --git a/chrome/browser/extensions/user_script_master.cc b/chrome/browser/extensions/user_script_master.cc |
index 78f2335889e64e2e39f9a41df3c140cfc3261826..60f8be0502dba7d036a3f8126950c7640f31b98e 100644 |
--- a/chrome/browser/extensions/user_script_master.cc |
+++ b/chrome/browser/extensions/user_script_master.cc |
@@ -362,6 +362,10 @@ void UserScriptMaster::StartLoad() { |
void UserScriptMaster::SendUpdate(RenderProcessHost* process, |
base::SharedMemory* shared_memory) { |
+ // Make sure we only send user scripts to processes in our profile. |
+ if (!profile_->IsSameProfile(process->profile())) |
+ return; |
+ |
// If the process is being started asynchronously, early return. We'll end up |
// calling InitUserScripts when it's created which will call this again. |
base::ProcessHandle handle = process->GetHandle(); |