summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache.cc
diff options
context:
space:
mode:
authorcbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-04 15:36:11 +0000
committercbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-04 15:36:11 +0000
commit2227c699c409af182b20d64fae135217d9ab6a24 (patch)
tree02181ac8440b73d460a67ce216ffef7bad85ff2c /net/http/http_cache.cc
parent4f5c54c25a07c7ea62af278b8a455b539273b8e1 (diff)
downloadchromium_src-2227c699c409af182b20d64fae135217d9ab6a24.zip
chromium_src-2227c699c409af182b20d64fae135217d9ab6a24.tar.gz
chromium_src-2227c699c409af182b20d64fae135217d9ab6a24.tar.bz2
Auto-format style pass over files.
This is a refactor (actually reformat) only - no behavior change in place. BUG=NONE TEST=net_unittests.exe Review URL: http://codereview.chromium.org/1800003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache.cc')
-rw-r--r--net/http/http_cache.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
index 7c433a9..fc7905b 100644
--- a/net/http/http_cache.cc
+++ b/net/http/http_cache.cc
@@ -287,7 +287,7 @@ disk_cache::Backend* HttpCache::GetBackend() {
disk_cache_.reset(disk_cache::CreateInMemoryCacheBackend(cache_size_));
} else if (!disk_cache_dir_.empty()) {
disk_cache_.reset(disk_cache::CreateCacheBackend(disk_cache_dir_, true,
- cache_size_, type_));
+ cache_size_, type_));
disk_cache_dir_ = FilePath(); // Reclaim memory.
}
return disk_cache_.get();
@@ -807,7 +807,8 @@ void HttpCache::ProcessPendingQueue(ActiveEntry* entry) {
return;
entry->will_process_pending_queue = true;
- MessageLoop::current()->PostTask(FROM_HERE,
+ MessageLoop::current()->PostTask(
+ FROM_HERE,
task_factory_.NewRunnableMethod(&HttpCache::OnProcessPendingQueue,
entry));
}
@@ -908,7 +909,7 @@ void HttpCache::OnIOComplete(int result, NewEntry* new_entry) {
}
}
} else {
- if (op == WI_CREATE_ENTRY && result != OK) {
+ if (op == WI_CREATE_ENTRY && result != OK) {
// Failed Create followed by an Open.
item->NotifyTransaction(ERR_CACHE_RACE, NULL);
fail_requests = true;