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

Unified Diff: chrome/browser/password_manager/password_store_factory.h

Issue 9703038: Profiles: Really fix refcounted services. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Forgot to save a file. >_< Created 8 years, 9 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/password_manager/password_store_factory.h
diff --git a/chrome/browser/password_manager/password_store_factory.h b/chrome/browser/password_manager/password_store_factory.h
index e18901bcbc251e46aae789c29ac089157996ede0..faadb87d2d6dd05b517b85d625463a0cbd606f2d 100644
--- a/chrome/browser/password_manager/password_store_factory.h
+++ b/chrome/browser/password_manager/password_store_factory.h
@@ -27,8 +27,8 @@ typedef int LocalProfileId;
// the associated PasswordStore.
class PasswordStoreFactory : public RefcountedProfileKeyedServiceFactory {
public:
- static PasswordStore* GetForProfile(Profile* profile,
- Profile::ServiceAccessType set);
+ static scoped_refptr<PasswordStore> GetForProfile(
+ Profile* profile, Profile::ServiceAccessType set);
static PasswordStoreFactory* GetInstance();
@@ -43,7 +43,7 @@ class PasswordStoreFactory : public RefcountedProfileKeyedServiceFactory {
#endif
// ProfileKeyedServiceFactory:
- virtual RefcountedProfileKeyedService* BuildServiceInstanceFor(
+ virtual scoped_refptr<RefcountedProfileKeyedService> BuildServiceInstanceFor(
Profile* profile) const OVERRIDE;
virtual void RegisterUserPrefs(PrefService* prefs) OVERRIDE;
virtual bool ServiceRedirectedInIncognito() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698