Index: content/browser/renderer_host/browser_render_process_host.cc |
diff --git a/content/browser/renderer_host/browser_render_process_host.cc b/content/browser/renderer_host/browser_render_process_host.cc |
index a5318723c8634578fc69a4822280e82567ba3d2e..48c66bd41edb52d5a344146f4a4bb4b27c619923 100644 |
--- a/content/browser/renderer_host/browser_render_process_host.cc |
+++ b/content/browser/renderer_host/browser_render_process_host.cc |
@@ -244,6 +244,11 @@ BrowserRenderProcessHost::~BrowserRenderProcessHost() { |
ClearTransportDIBCache(); |
} |
+void BrowserRenderProcessHost::PrepareForReuse() { |
+ // Reset is_initialized_ so we start queuing up messages passed to Send. |
+ is_initialized_ = false; |
+} |
+ |
bool BrowserRenderProcessHost::Init(bool is_accessibility_enabled) { |
// calling Init() more than once does nothing, this makes it more convenient |
// for the view host which may not be sure in some cases |