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

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

Issue 7480028: Removal of Profile from content part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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..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

Powered by Google App Engine
This is Rietveld 408576698