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 e716e164aeb987992f9ff2d0c188cd557e53ae0b..ce3ce6897e3a1f01813d5c1da49aa80d9882ecfa 100644 |
--- a/net/disk_cache/simple/simple_util.cc |
+++ b/net/disk_cache/simple/simple_util.cc |
@@ -52,6 +52,11 @@ uint64 GetEntryHashKey(const std::string& key) { |
return hash_key; |
} |
+std::string GetFilenameFromHexStringAndIndex(const std::string& hex_key, |
+ int index) { |
+ return hex_key + base::StringPrintf("_%1d", index); |
+} |
+ |
std::string GetFilenameFromKeyAndIndex(const std::string& key, int index) { |
return GetEntryHashKeyAsHexString(key) + base::StringPrintf("_%1d", index); |
felipeg
2013/04/17 16:35:04
Reuse your newly added function
pasko-google - do not use
2013/04/17 19:47:52
I thought about this too and then decided that thi
|
} |