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

Unified Diff: content/public/test/mock_render_thread.cc

Issue 169063003: Cast: make global_instance_ more strict (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 6 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/renderer/media/cast_ipc_dispatcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_render_thread.cc
diff --git a/content/public/test/mock_render_thread.cc b/content/public/test/mock_render_thread.cc
index ec7ead85a693bffebaa1b68475226b833ad0725d..19eac83a9f46db0f5a225d886beef8742963c8fa 100644
--- a/content/public/test/mock_render_thread.cc
+++ b/content/public/test/mock_render_thread.cc
@@ -26,6 +26,11 @@ MockRenderThread::MockRenderThread()
}
MockRenderThread::~MockRenderThread() {
+ while (!filters_.empty()) {
+ scoped_refptr<IPC::ChannelProxy::MessageFilter> filter = filters_.back();
+ filters_.pop_back();
+ filter->OnFilterRemoved();
+ }
}
void MockRenderThread::VerifyRunJavaScriptMessageSend(
« no previous file with comments | « chrome/renderer/media/cast_ipc_dispatcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698