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

Unified Diff: chrome/browser/signin/token_service_unittest.cc

Issue 10006037: Moved WebDataService to ProfileKeyedService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compile Created 8 years, 8 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/signin/token_service_unittest.cc
diff --git a/chrome/browser/signin/token_service_unittest.cc b/chrome/browser/signin/token_service_unittest.cc
index 68880ce52b99902a97b1ac2931c325fb3ba91e99..ff62f3db400d378e27efcf91c86a74cb082496d7 100644
--- a/chrome/browser/signin/token_service_unittest.cc
+++ b/chrome/browser/signin/token_service_unittest.cc
@@ -13,6 +13,7 @@
#include "base/synchronization/waitable_event.h"
#include "chrome/browser/password_manager/encryptor.h"
#include "chrome/browser/signin/token_service_factory.h"
+#include "chrome/browser/webdata/web_data_service_factory.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/net/gaia/mock_url_fetcher_factory.h"
@@ -72,7 +73,6 @@ void TokenServiceTestHarness::SetUp() {
ASSERT_TRUE(db_thread_.Start());
profile_.reset(new TestingProfile());
- profile_->CreateWebDataService(false);
WaitForDBLoadCompletion();
service_ = TokenServiceFactory::GetForProfile(profile_.get());
@@ -90,6 +90,9 @@ void TokenServiceTestHarness::TearDown() {
profile_.reset(NULL);
}
+ BrowserThread::UnsafeGetMessageLoopForThread(
+ BrowserThread::DB)->RunAllPending();
+
db_thread_.Stop();
MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
MessageLoop::current()->Run();
« no previous file with comments | « chrome/browser/signin/token_service_factory.cc ('k') | chrome/browser/sync/glue/autofill_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698