diff options
author | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-27 06:47:29 +0000 |
---|---|---|
committer | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-27 06:47:29 +0000 |
commit | 018fe3914f9cd7fde7222537f7777d472e718f67 (patch) | |
tree | a28f7e8b10e7db57bf49138ba3c23d754d8690d1 /chrome/common/chrome_plugin_unittest.cc | |
parent | ab0d0371e8f919411a2b2dc3364f328c9ec97c43 (diff) | |
download | chromium_src-018fe3914f9cd7fde7222537f7777d472e718f67.zip chromium_src-018fe3914f9cd7fde7222537f7777d472e718f67.tar.gz chromium_src-018fe3914f9cd7fde7222537f7777d472e718f67.tar.bz2 |
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
Diffstat (limited to 'chrome/common/chrome_plugin_unittest.cc')
-rw-r--r-- | chrome/common/chrome_plugin_unittest.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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(); } |