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

Unified Diff: net/disk_cache/flash/internal_entry.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/flash/flash_entry_impl.cc ('k') | net/disk_cache/flash/log_store_entry_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/flash/internal_entry.cc
diff --git a/net/disk_cache/flash/internal_entry.cc b/net/disk_cache/flash/internal_entry.cc
index 1465973212d206a69d53074835b16439c43d08a6..c6bae8926aa0b39ada7c4dbc186a69ad1c62de95 100644
--- a/net/disk_cache/flash/internal_entry.cc
+++ b/net/disk_cache/flash/internal_entry.cc
@@ -71,13 +71,13 @@ void InternalEntry::Close() {
bool InternalEntry::WriteKey(LogStoreEntry* entry, const std::string& key) {
int key_size = static_cast<int>(key.size());
scoped_refptr<IOBuffer> key_buf(new StringIOBuffer(key));
- return entry->WriteData(0, 0, key_buf, key_size) == key_size;
+ return entry->WriteData(0, 0, key_buf.get(), key_size) == key_size;
}
bool InternalEntry::ReadKey(LogStoreEntry* entry, std::string* key) {
int key_size = entry->GetDataSize(0);
scoped_refptr<net::IOBuffer> key_buf(new net::IOBuffer(key_size));
- if (entry->ReadData(0, 0, key_buf, key_size) != key_size)
+ if (entry->ReadData(0, 0, key_buf.get(), key_size) != key_size)
return false;
key->assign(key_buf->data(), key_size);
return true;
« no previous file with comments | « net/disk_cache/flash/flash_entry_impl.cc ('k') | net/disk_cache/flash/log_store_entry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698