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

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

Issue 23068005: Convert UserPolicySigninService to use OAuth2TokenService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android fixes. Created 7 years, 4 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 0617ae5764cc572f46ff2e87540af60a227a387b..565d30a4832be998a8e12bb91d43bd5b2e9955de 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 scoped_ptr<TestingProfile>(new TestingProfile());
awong 2013/08/16 17:53:16 not sure it's cleaner, but fyi people sometimes li
Andrew T Wilson (Slow) 2013/08/19 12:15:56 It's smaller, which is good enough for me :) Done.
+}
+
void TokenServiceTestHarness::TearDown() {
// You have to destroy the profile before the threads are shut down.
profile_.reset();

Powered by Google App Engine
This is Rietveld 408576698