Index: net/disk_cache/block_files.cc |
diff --git a/net/disk_cache/block_files.cc b/net/disk_cache/block_files.cc |
index 0e55521de1c11f9dd0c62150d81ccfba54248dc1..97985cadc8dfe40cdd16fd31ba790073b9769239 100644 |
--- a/net/disk_cache/block_files.cc |
+++ b/net/disk_cache/block_files.cc |
@@ -450,7 +450,7 @@ bool BlockFiles::OpenBlockFile(int index) { |
if (header->updating || !ValidateCounters(header)) { |
// Last instance was not properly shutdown, or counters are out of sync. |
- if (!FixBlockFileHeader(file)) { |
+ if (!FixBlockFileHeader(file.get())) { |
LOG(ERROR) << "Unable to fix block file " << name.value(); |
return false; |
} |
@@ -469,7 +469,7 @@ bool BlockFiles::OpenBlockFile(int index) { |
return false; |
} |
- ScopedFlush flush(file); |
+ ScopedFlush flush(file.get()); |
DCHECK(!block_files_[index]); |
file.swap(&block_files_[index]); |
return true; |