Index: chrome/browser/sync/credential_cache_service_win.cc |
diff --git a/chrome/browser/sync/credential_cache_service_win.cc b/chrome/browser/sync/credential_cache_service_win.cc |
index 23ac826ef192f9de27889e13a01a48976e48de0f..0556dc77c28a24fa980cc222474c1589f83daa93 100644 |
--- a/chrome/browser/sync/credential_cache_service_win.cc |
+++ b/chrome/browser/sync/credential_cache_service_win.cc |
@@ -641,10 +641,10 @@ FilePath CredentialCacheService::GetCredentialPathInAlternateProfile() const { |
} |
void CredentialCacheService::InitializeLocalCredentialCacheWriter() { |
- local_store_ = new JsonPrefStore( |
+ local_store_ = JsonPrefStore::Create( |
GetCredentialPathInCurrentProfile(), |
- content::BrowserThread::GetMessageLoopProxyForThread( |
- content::BrowserThread::FILE)); |
+ JsonPrefStore::GetTaskRunnerForFile(GetCredentialPathInCurrentProfile(), |
+ BrowserThread::GetBlockingPool())); |
Mattias Nissler (ping if slow)
2012/10/22 17:28:21
Do we have the assumption that the profile directo
zel
2012/10/24 02:20:11
I am not really sure where that actually happens f
|
local_store_observer_ = new LocalStoreObserver(this, local_store_); |
local_store_->ReadPrefsAsync(NULL); |
} |
@@ -693,10 +693,12 @@ void CredentialCacheService::LookForCachedCredentialsInAlternateProfile() { |
// Attempt to read cached credentials from the alternate profile. If no file |
// exists, ReadPrefsAsync() will cause PREF_READ_ERROR_NO_FILE to be returned |
// after initialization is complete. |
- alternate_store_ = new JsonPrefStore( |
- GetCredentialPathInAlternateProfile(), |
- content::BrowserThread::GetMessageLoopProxyForThread( |
- content::BrowserThread::FILE)); |
+ FilePath path = GetCredentialPathInAlternateProfile(); |
+ alternate_store_ = JsonPrefStore::Create( |
+ path, |
+ JsonPrefStore::GetTaskRunnerForFile( |
+ path, |
+ BrowserThread::GetBlockingPool())); |
alternate_store_observer_ = new AlternateStoreObserver(this, |
alternate_store_); |
alternate_store_->ReadPrefsAsync(NULL); |