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

Unified Diff: net/disk_cache/blockfile/backend_worker_v3.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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: net/disk_cache/blockfile/backend_worker_v3.cc
diff --git a/net/disk_cache/blockfile/backend_worker_v3.cc b/net/disk_cache/blockfile/backend_worker_v3.cc
index ab432c4a397ffd5903357b081ec9cab23373edca..23c7c0c4ae0611cfc8fd250a39707e34ddce2412 100644
--- a/net/disk_cache/blockfile/backend_worker_v3.cc
+++ b/net/disk_cache/blockfile/backend_worker_v3.cc
@@ -73,7 +73,7 @@ bool InitExperiment(disk_cache::IndexHeader* header, bool cache_created) {
}
if (base::FieldTrialList::FindFullName("SimpleCacheTrial") ==
- "ExperimentControl") {
+ "ExperimentControl") {
if (cache_created) {
header->experiment = disk_cache::EXPERIMENT_SIMPLE_CONTROL;
return true;
@@ -95,9 +95,7 @@ namespace disk_cache {
BackendImplV3::Worker::Worker(const base::FilePath& path,
base::MessageLoopProxy* main_thread)
- : path_(path),
- block_files_(path),
- init_(false) {
+ : path_(path), block_files_(path), init_(false) {
}
#if defined(V3_NOT_JUST_YET_READY)
@@ -126,7 +124,9 @@ int BackendImpl::SyncInit() {
// Create a recurrent timer of 30 secs.
int timer_delay = unit_test_ ? 1000 : 30000;
timer_.reset(new base::RepeatingTimer<BackendImpl>());
- timer_->Start(FROM_HERE, TimeDelta::FromMilliseconds(timer_delay), this,
+ timer_->Start(FROM_HERE,
+ TimeDelta::FromMilliseconds(timer_delay),
+ this,
&BackendImpl::OnStatsTimer);
}
@@ -310,8 +310,7 @@ bool BackendImpl::InitBackingStore(bool* file_created) {
base::FilePath index_name = path_.AppendASCII(kIndexName);
- int flags = base::PLATFORM_FILE_READ |
- base::PLATFORM_FILE_WRITE |
+ int flags = base::PLATFORM_FILE_READ | base::PLATFORM_FILE_WRITE |
base::PLATFORM_FILE_OPEN_ALWAYS |
base::PLATFORM_FILE_EXCLUSIVE_WRITE;
scoped_refptr<disk_cache::File> file(new disk_cache::File(
@@ -354,7 +353,6 @@ void BackendImpl::ReportError(int error) {
CACHE_UMA(CACHE_ERROR, "Error", 0, error * -1);
}
-
bool BackendImpl::CheckIndex() {
DCHECK(data_);
@@ -444,8 +442,8 @@ bool BackendImpl::InitStats() {
return false;
scoped_ptr<char[]> data(new char[size]);
- size_t offset = address.start_block() * address.BlockSize() +
- kBlockHeaderSize;
+ size_t offset =
+ address.start_block() * address.BlockSize() + kBlockHeaderSize;
if (!file->Read(data.get(), size, offset))
return false;

Powered by Google App Engine
This is Rietveld 408576698