From 018fe3914f9cd7fde7222537f7777d472e718f67 Mon Sep 17 00:00:00 2001 From: "darin@google.com" Date: Wed, 27 Aug 2008 06:47:29 +0000 Subject: Manually destroy the URLRequest before flushing pending tasks since the destruction of an URLRequest can result in PostTask being called. TBR=erikkay git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1433 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/chrome_plugin_unittest.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome') diff --git a/chrome/common/chrome_plugin_unittest.cc b/chrome/common/chrome_plugin_unittest.cc index 7c6650e..1465f1a 100644 --- a/chrome/common/chrome_plugin_unittest.cc +++ b/chrome/common/chrome_plugin_unittest.cc @@ -61,6 +61,10 @@ class ChromePluginTest : public testing::Test, public URLRequest::Delegate { Profile::set_default_request_context(NULL); + // Clear the request before flushing the message loop since killing the + // request can result in the generation of more tasks. + request_.reset(); + // Flush the message loop to make Purify happy. message_loop_.RunAllPending(); } -- cgit v1.1