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 758700c809b0a4a4ab3831b81294cf325afafa5f..8267b78eef58d5f5b7bc7fe5d4af5cebcfec180a 100644 |
--- a/chrome/browser/extensions/user_script_master.cc |
+++ b/chrome/browser/extensions/user_script_master.cc |
@@ -363,8 +363,9 @@ void UserScriptMaster::StartLoad() { |
void UserScriptMaster::SendUpdate(RenderProcessHost* process, |
base::SharedMemory* shared_memory) { |
+ Profile* profile = Profile::FromBrowserContext(process->browser_context()); |
// Make sure we only send user scripts to processes in our profile. |
- if (!profile_->IsSameProfile(process->profile())) |
+ if (!profile_->IsSameProfile(profile)) |
return; |
// If the process is being started asynchronously, early return. We'll end up |