summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/user_script_master.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 20:23:08 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 20:23:08 +0000
commit9b62ecf0edb34df19a8bc2458f13d6cd4ac2b356 (patch)
tree1b2332b39fa78301143b12bda62e176076f2fc25 /chrome/browser/extensions/user_script_master.cc
parent9fb2a545971556245753c90852e0d835e516d6bb (diff)
downloadchromium_src-9b62ecf0edb34df19a8bc2458f13d6cd4ac2b356.zip
chromium_src-9b62ecf0edb34df19a8bc2458f13d6cd4ac2b356.tar.gz
chromium_src-9b62ecf0edb34df19a8bc2458f13d6cd4ac2b356.tar.bz2
Removal of Profile from content part 2.
BUG=76788 TEST=no change visible Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94332 Review URL: http://codereview.chromium.org/7480028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94347 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/user_script_master.cc')
-rw-r--r--chrome/browser/extensions/user_script_master.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/extensions/user_script_master.cc b/chrome/browser/extensions/user_script_master.cc
index 758700c..8267b78 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