summaryrefslogtreecommitdiffstats
path: root/chrome/browser/password_manager/password_store_win_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/password_manager/password_store_win_unittest.cc')
-rw-r--r--chrome/browser/password_manager/password_store_win_unittest.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/browser/password_manager/password_store_win_unittest.cc b/chrome/browser/password_manager/password_store_win_unittest.cc
index ddcfa60..0d03e20 100644
--- a/chrome/browser/password_manager/password_store_win_unittest.cc
+++ b/chrome/browser/password_manager/password_store_win_unittest.cc
@@ -120,12 +120,8 @@ class PasswordStoreWinTest : public testing::Test {
virtual void TearDown() {
if (store_.get())
store_->ShutdownOnUIThread();
- wds_->ShutdownOnUIThread();
- wds_ = NULL;
- base::WaitableEvent done(false, false);
- BrowserThread::PostTask(BrowserThread::DB, FROM_HERE,
- base::Bind(&base::WaitableEvent::Signal, base::Unretained(&done)));
- done.Wait();
+ if (wds_.get())
+ wds_->Shutdown();
MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
MessageLoop::current()->Run();
db_thread_.Stop();
@@ -254,6 +250,7 @@ TEST_F(PasswordStoreWinTest, DISABLED_OutstandingWDSQueries) {
// Release the PSW and the WDS before the query can return.
store_->ShutdownOnUIThread();
store_ = NULL;
+ wds_->Shutdown();
wds_ = NULL;
MessageLoop::current()->RunAllPending();