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..780b9659740d89e7ca9016fb936a0ba5c53e02aa 100644 |
--- a/chrome/browser/extensions/user_script_master.cc |
+++ b/chrome/browser/extensions/user_script_master.cc |
@@ -364,7 +364,8 @@ 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())) |
+ Profile* process_profile = static_cast<Profile*>(process->context()); |
+ if (!profile_->IsSameProfile(process_profile)) |
return; |
// If the process is being started asynchronously, early return. We'll end up |