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

Unified Diff: net/disk_cache/block_files.cc

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 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
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/disk_cache/cache_creator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/disk_cache/cache_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698