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

Unified Diff: content/test/mock_render_process_host.cc

Issue 10575014: Move process-per-site logic from BrowsingInstance to RenderProcessHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up RPHs in test. Created 8 years, 6 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: content/test/mock_render_process_host.cc
diff --git a/content/test/mock_render_process_host.cc b/content/test/mock_render_process_host.cc
index 31d94dbed722957f8c135749318a5875a6406276..0a40b9f0d4cd4fb221029a9c8ad6de7378d1fe0f 100644
--- a/content/test/mock_render_process_host.cc
+++ b/content/test/mock_render_process_host.cc
@@ -36,7 +36,7 @@ MockRenderProcessHost::~MockRenderProcessHost() {
if (factory_)
factory_->Remove(this);
// In unit tests, Release() might not have been called.
- RenderProcessHostImpl::UnregisterHost(GetID());
+ RenderProcessHostImpl::UnregisterHost(GetID(), this);
}
void MockRenderProcessHost::EnableSendQueue() {
@@ -165,7 +165,7 @@ void MockRenderProcessHost::Cleanup() {
Source<RenderProcessHost>(this),
NotificationService::NoDetails());
MessageLoop::current()->DeleteSoon(FROM_HERE, this);
- RenderProcessHostImpl::UnregisterHost(GetID());
+ RenderProcessHostImpl::UnregisterHost(GetID(), this);
}
}
« content/public/browser/render_process_host.h ('K') | « content/public/common/content_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698