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

Unified Diff: chrome/browser/nacl_host/pnacl_translation_cache.cc

Issue 20737002: Change the API of disk_cache::CreateCacheBackend to use scoped_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix new test Created 7 years, 5 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 | « chrome/browser/nacl_host/pnacl_translation_cache.h ('k') | content/browser/gpu/shader_disk_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/nacl_host/pnacl_translation_cache.cc
diff --git a/chrome/browser/nacl_host/pnacl_translation_cache.cc b/chrome/browser/nacl_host/pnacl_translation_cache.cc
index a5f8eb6e84b26cc1d41687a3a30d6d9939210330..fa548f1f70d7e77184cb0f443707d4e4940a083b 100644
--- a/chrome/browser/nacl_host/pnacl_translation_cache.cc
+++ b/chrome/browser/nacl_host/pnacl_translation_cache.cc
@@ -304,10 +304,9 @@ void PnaclTranslationCache::OpComplete(PnaclTranslationCacheEntry* entry) {
//////////////////////////////////////////////////////////////////////
// Construction and cache backend initialization
-PnaclTranslationCache::PnaclTranslationCache()
- : disk_cache_(NULL), in_memory_(false) {}
+PnaclTranslationCache::PnaclTranslationCache() : in_memory_(false) {}
-PnaclTranslationCache::~PnaclTranslationCache() { delete disk_cache_; }
+PnaclTranslationCache::~PnaclTranslationCache() {}
int PnaclTranslationCache::InitWithDiskBackend(
const base::FilePath& cache_dir,
« no previous file with comments | « chrome/browser/nacl_host/pnacl_translation_cache.h ('k') | content/browser/gpu/shader_disk_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698