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

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

Issue 11027070: Moved JsonPrefStore to use SequencedWorkerPool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/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..e8543780677a77e4a8a0f3049cb35654a69c89aa 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()));
local_store_observer_ = new LocalStoreObserver(this, local_store_);
local_store_->ReadPrefsAsync(NULL);
}
@@ -695,8 +695,7 @@ void CredentialCacheService::LookForCachedCredentialsInAlternateProfile() {
// after initialization is complete.
alternate_store_ = new JsonPrefStore(
GetCredentialPathInAlternateProfile(),
- content::BrowserThread::GetMessageLoopProxyForThread(
- content::BrowserThread::FILE));
+ BrowserThread::GetBlockingPool());
akalin 2012/10/19 02:00:51 change this one to use GetTaskRunnerForFile like a
zel 2012/10/19 18:45:07 Done.
alternate_store_observer_ = new AlternateStoreObserver(this,
alternate_store_);
alternate_store_->ReadPrefsAsync(NULL);

Powered by Google App Engine
This is Rietveld 408576698