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 0617ae5764cc572f46ff2e87540af60a227a387b..f93476473d65b3ceef38871db2dd993c8c185fec 100644 |
--- a/chrome/browser/signin/token_service_unittest.cc |
+++ b/chrome/browser/signin/token_service_unittest.cc |
@@ -64,7 +64,8 @@ void TokenServiceTestHarness::SetUp() { |
oauth_token_ = "oauth"; |
oauth_secret_ = "secret"; |
- profile_.reset(new TestingProfile()); |
+ profile_ = CreateProfile().Pass(); |
+ |
profile_->CreateWebDataService(); |
// Force the loading of the WebDataService. |
@@ -81,6 +82,10 @@ void TokenServiceTestHarness::SetUp() { |
service()->Initialize("test", profile_.get()); |
} |
+scoped_ptr<TestingProfile> TokenServiceTestHarness::CreateProfile() { |
+ return make_scoped_ptr(new TestingProfile()); |
+} |
+ |
void TokenServiceTestHarness::TearDown() { |
// You have to destroy the profile before the threads are shut down. |
profile_.reset(); |