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

Unified Diff: chrome/browser/extensions/user_script_master.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works now Created 9 years, 5 months 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
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

Powered by Google App Engine
This is Rietveld 408576698