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

Unified Diff: chrome/browser/password_manager/password_store_win_unittest.cc

Issue 10185008: Taking over issue 10006037: Moved WebDataService to ProfileKeyedService (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
Index: chrome/browser/password_manager/password_store_win_unittest.cc
===================================================================
--- chrome/browser/password_manager/password_store_win_unittest.cc (revision 136877)
+++ chrome/browser/password_manager/password_store_win_unittest.cc (working copy)
@@ -120,8 +120,12 @@
virtual void TearDown() {
if (store_.get())
store_->ShutdownOnUIThread();
- if (wds_.get())
- wds_->Shutdown();
+ 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();
MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
MessageLoop::current()->Run();
db_thread_.Stop();
@@ -250,7 +254,6 @@
// Release the PSW and the WDS before the query can return.
store_->ShutdownOnUIThread();
store_ = NULL;
- wds_->Shutdown();
wds_ = NULL;
MessageLoop::current()->RunAllPending();
« no previous file with comments | « chrome/browser/password_manager/password_store_factory.cc ('k') | chrome/browser/profiles/off_the_record_profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698