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

Unified Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 2110007: Fix a bug where incognito renderer hosts would not receive updates for (Closed)
Patch Set: Created 10 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/browser_render_process_host.cc
diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc
index 09c1fbfc6e9fd509e512a2e704e3ad03e2de5cc5..a9b5c484d60f0ca3a49fd50dcf0fc4b77a62f936 100644
--- a/chrome/browser/renderer_host/browser_render_process_host.cc
+++ b/chrome/browser/renderer_host/browser_render_process_host.cc
@@ -200,11 +200,11 @@ BrowserRenderProcessHost::BrowserRenderProcessHost(Profile* profile)
widget_helper_ = new RenderWidgetHelper();
registrar_.Add(this, NotificationType::USER_SCRIPTS_UPDATED,
- Source<Profile>(profile));
+ Source<Profile>(profile->GetOriginalProfile()));
registrar_.Add(this, NotificationType::EXTENSION_LOADED,
- Source<Profile>(profile));
+ Source<Profile>(profile->GetOriginalProfile()));
registrar_.Add(this, NotificationType::EXTENSION_UNLOADED,
- Source<Profile>(profile));
+ Source<Profile>(profile->GetOriginalProfile()));
registrar_.Add(this, NotificationType::SPELLCHECK_HOST_REINITIALIZED,
NotificationService::AllSources());
registrar_.Add(this, NotificationType::SPELLCHECK_WORD_ADDED,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698