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

Unified Diff: net/disk_cache/simple/simple_util.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/simple/simple_util.cc
diff --git a/net/disk_cache/simple/simple_util.cc b/net/disk_cache/simple/simple_util.cc
index 4feeeecaf0c9185f3f835803278a320d42e8a1ac..a3497df750bb45566e134c3692d30a66765e34f9 100644
--- a/net/disk_cache/simple/simple_util.cc
+++ b/net/disk_cache/simple/simple_util.cc
@@ -75,7 +75,8 @@ uint64 GetEntryHashKey(const std::string& key) {
uint64 key_hash;
} u;
base::SHA1HashBytes(reinterpret_cast<const unsigned char*>(key.data()),
- key.size(), u.sha_hash);
+ key.size(),
+ u.sha_hash);
return u.key_hash;
}
@@ -95,15 +96,15 @@ std::string GetFilenameFromKeyAndFileIndex(const std::string& key,
}
int32 GetDataSizeFromKeyAndFileSize(const std::string& key, int64 file_size) {
- int64 data_size = file_size - key.size() - sizeof(SimpleFileHeader) -
- sizeof(SimpleFileEOF);
+ int64 data_size =
+ file_size - key.size() - sizeof(SimpleFileHeader) - sizeof(SimpleFileEOF);
DCHECK_GE(implicit_cast<int64>(std::numeric_limits<int32>::max()), data_size);
return data_size;
}
int64 GetFileSizeFromKeyAndDataSize(const std::string& key, int32 data_size) {
return data_size + key.size() + sizeof(SimpleFileHeader) +
- sizeof(SimpleFileEOF);
+ sizeof(SimpleFileEOF);
}
int GetFileIndexFromStreamIndex(int stream_index) {
@@ -122,8 +123,8 @@ bool GetMTime(const base::FilePath& path, base::Time* out_mtime) {
long nsec;
if (GetNanoSecsFromStat(file_stat, &sec, &nsec)) {
int64 usec = (nsec / base::Time::kNanosecondsPerMicrosecond);
- *out_mtime = base::Time::FromTimeT(sec)
- + base::TimeDelta::FromMicroseconds(usec);
+ *out_mtime =
+ base::Time::FromTimeT(sec) + base::TimeDelta::FromMicroseconds(usec);
return true;
}
#endif

Powered by Google App Engine
This is Rietveld 408576698