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

Unified Diff: chrome/browser/sync/profile_sync_service_password_unittest.cc

Issue 12502017: signin: pull basic SigninManager functionality into new SigninManagerBase class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deal with new enterprise_platform_keys_private_api Created 7 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/sync/profile_sync_service_password_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_password_unittest.cc b/chrome/browser/sync/profile_sync_service_password_unittest.cc
index a936bd7ad44165d057525994d5aff9b6b42c7f78..e7cd3033299dfeaaf08480f581a6e60fb24515e9 100644
--- a/chrome/browser/sync/profile_sync_service_password_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_password_unittest.cc
@@ -98,7 +98,7 @@ class PasswordTestProfileSyncService : public TestProfileSyncService {
PasswordTestProfileSyncService(
ProfileSyncComponentsFactory* factory,
Profile* profile,
- SigninManager* signin)
+ SigninManagerBase* signin)
: TestProfileSyncService(factory,
profile,
signin,
@@ -129,7 +129,8 @@ class PasswordTestProfileSyncService : public TestProfileSyncService {
}
static ProfileKeyedService* Build(Profile* profile) {
- SigninManager* signin = SigninManagerFactory::GetForProfile(profile);
+ SigninManagerBase* signin =
+ SigninManagerFactory::GetForProfile(profile);
ProfileSyncComponentsFactoryMock* factory =
new ProfileSyncComponentsFactoryMock();
return new PasswordTestProfileSyncService(factory, profile, signin);
@@ -198,7 +199,8 @@ class ProfileSyncServicePasswordTest : public AbstractProfileSyncServiceTest {
void StartSyncService(const base::Closure& root_callback,
const base::Closure& node_callback) {
if (!sync_service_) {
- SigninManager* signin = SigninManagerFactory::GetForProfile(&profile_);
+ SigninManagerBase* signin =
+ SigninManagerFactory::GetForProfile(&profile_);
signin->SetAuthenticatedUsername("test_user");
token_service_ = static_cast<TokenService*>(
TokenServiceFactory::GetInstance()->SetTestingFactoryAndUse(
« no previous file with comments | « chrome/browser/sync/profile_sync_service_harness.cc ('k') | chrome/browser/sync/profile_sync_service_preference_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698