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

Unified Diff: net/disk_cache/simple/simple_index.cc

Issue 517873003: Revert of Net-related fixups for scoped_refptr conversion operator cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/simple/simple_index.h ('k') | net/http/transport_security_persister.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_index.cc
diff --git a/net/disk_cache/simple/simple_index.cc b/net/disk_cache/simple/simple_index.cc
index de07e1cc32e647f72d917302e407b794fa2b0bd8..6d449cc82faf224112a49dd4ff0810990f5122f0 100644
--- a/net/disk_cache/simple/simple_index.cc
+++ b/net/disk_cache/simple/simple_index.cc
@@ -135,11 +135,10 @@
return true;
}
-SimpleIndex::SimpleIndex(
- const scoped_refptr<base::SingleThreadTaskRunner>& io_thread,
- SimpleIndexDelegate* delegate,
- net::CacheType cache_type,
- scoped_ptr<SimpleIndexFile> index_file)
+SimpleIndex::SimpleIndex(base::SingleThreadTaskRunner* io_thread,
+ SimpleIndexDelegate* delegate,
+ net::CacheType cache_type,
+ scoped_ptr<SimpleIndexFile> index_file)
: delegate_(delegate),
cache_type_(cache_type),
cache_size_(0),
@@ -153,8 +152,7 @@
// Creating the callback once so it is reused every time
// write_to_disk_timer_.Start() is called.
write_to_disk_cb_(base::Bind(&SimpleIndex::WriteToDisk, AsWeakPtr())),
- app_on_background_(false) {
-}
+ app_on_background_(false) {}
SimpleIndex::~SimpleIndex() {
DCHECK(io_thread_checker_.CalledOnValidThread());
« no previous file with comments | « net/disk_cache/simple/simple_index.h ('k') | net/http/transport_security_persister.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698