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

Unified Diff: chrome/browser/visitedlink/visitedlink_event_listener.cc

Issue 12221069: Temporary fix for installer/visitedlink crash (crbug.com/171475) (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src
Patch Set: Created 7 years, 10 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 | « chrome/browser/chrome_browser_main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/visitedlink/visitedlink_event_listener.cc
===================================================================
--- chrome/browser/visitedlink/visitedlink_event_listener.cc (revision 181040)
+++ chrome/browser/visitedlink/visitedlink_event_listener.cc (working copy)
@@ -116,6 +116,17 @@
content::NotificationService::AllBrowserContextsAndSources());
registrar_.Add(this, content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED,
content::NotificationService::AllBrowserContextsAndSources());
+ for (content::RenderProcessHost::iterator i(
+ content::RenderProcessHost::AllHostsIterator());
+ !i.IsAtEnd(); i.Advance()) {
+ content::RenderProcessHost* process = i.GetCurrentValue();
+ Profile* rph_profile =
+ Profile::FromBrowserContext(process->GetBrowserContext());
+ if (!profile_->IsSameProfile(rph_profile))
+ continue;
+ updaters_[process->GetID()] =
brettw 2013/02/13 21:57:24 Below in the NOTIFICATION_RENDERER_PROCESS_CREATED
Cait (Slow) 2013/02/14 16:58:13 We do need to send the table here. This was a mist
+ make_linked_ptr(new VisitedLinkUpdater(process->GetID()));
+ }
}
VisitedLinkEventListener::~VisitedLinkEventListener() {
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698