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

Unified Diff: chrome/browser/sync/credential_cache_service_factory_win.h

Issue 10867019: [sync] Add hooks to allow for testing sync credential caching in the presence of strange singleton … (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
« no previous file with comments | « no previous file | chrome/browser/sync/credential_cache_service_factory_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/credential_cache_service_factory_win.h
diff --git a/chrome/browser/sync/credential_cache_service_factory_win.h b/chrome/browser/sync/credential_cache_service_factory_win.h
index c5cff712d417d581989f5b139adf36c2f7d55244..f284af2d1c63ef8d4f5ce346318f83ff178f3129 100644
--- a/chrome/browser/sync/credential_cache_service_factory_win.h
+++ b/chrome/browser/sync/credential_cache_service_factory_win.h
@@ -21,6 +21,13 @@ class CredentialCacheServiceFactory : public ProfileKeyedServiceFactory {
static CredentialCacheServiceFactory* GetInstance();
+ // Returns true if |profile| uses the "Default" directory, and false if not.
+ static bool IsDefaultProfile(Profile* profile);
+
+ // Returns true if |profile| uses the "Default" directory in the alternate
+ // user data directory, and false if not. Used only for testing.
+ static bool IsDefaultAlternateProfileForTest(Profile* profile);
+
private:
friend struct DefaultSingletonTraits<CredentialCacheServiceFactory>;
@@ -28,9 +35,6 @@ class CredentialCacheServiceFactory : public ProfileKeyedServiceFactory {
virtual ~CredentialCacheServiceFactory();
- // Returns true if |profile| uses the "Default" directory, and false if not.
- static bool IsDefaultProfile(Profile* profile);
-
// ProfileKeyedServiceFactory implementation.
virtual bool ServiceIsCreatedWithProfile() OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/sync/credential_cache_service_factory_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698