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

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

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 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 e7cd3033299dfeaaf08480f581a6e60fb24515e9..59c7fced6f3ce85396d18362fa4984fe6f596bb0 100644
--- a/chrome/browser/sync/profile_sync_service_password_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_password_unittest.cc
@@ -85,7 +85,8 @@ class NullPasswordStore : public MockPasswordStore {
public:
NullPasswordStore() {}
- static scoped_refptr<RefcountedProfileKeyedService> Build(Profile* profile) {
+ static scoped_refptr<RefcountedProfileKeyedService> Build(
+ content::BrowserContext* profile) {
return scoped_refptr<RefcountedProfileKeyedService>();
}
@@ -128,7 +129,8 @@ class PasswordTestProfileSyncService : public TestProfileSyncService {
QuitMessageLoop();
}
- static ProfileKeyedService* Build(Profile* profile) {
+ static ProfileKeyedService* Build(content::BrowserContext* context) {
+ Profile* profile = static_cast<Profile*>(context);
SigninManagerBase* signin =
SigninManagerFactory::GetForProfile(profile);
ProfileSyncComponentsFactoryMock* factory =
« no previous file with comments | « chrome/browser/sync/profile_sync_service_mock.cc ('k') | chrome/browser/sync/profile_sync_service_startup_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698