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

Unified Diff: content/browser/indexed_db/indexed_db_backing_store.h

Issue 417573004: indexeddb: Removed use of dangling ptr in writeBlobToFileOnIOThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added period at end of sentence Created 6 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
Index: content/browser/indexed_db/indexed_db_backing_store.h
diff --git a/content/browser/indexed_db/indexed_db_backing_store.h b/content/browser/indexed_db/indexed_db_backing_store.h
index dd5c758c20a212f5276b9dc77729a90cb4f1d496..7c5710e34e49da2f4f3e8465835a22abf2b50f1a 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.h
+++ b/content/browser/indexed_db/indexed_db_backing_store.h
@@ -459,7 +459,8 @@ class CONTENT_EXPORT IndexedDBBackingStore
base::Time last_modified_;
};
- class ChainedBlobWriter : public base::RefCounted<ChainedBlobWriter> {
+ class ChainedBlobWriter
+ : public base::RefCountedThreadSafe<ChainedBlobWriter> {
public:
virtual void set_delegate(
scoped_ptr<fileapi::FileWriterDelegate> delegate) = 0;
@@ -472,7 +473,7 @@ class CONTENT_EXPORT IndexedDBBackingStore
protected:
virtual ~ChainedBlobWriter() {}
- friend class base::RefCounted<ChainedBlobWriter>;
+ friend class base::RefCountedThreadSafe<ChainedBlobWriter>;
michaeln1 2014/07/23 20:15:15 style nit: ditto
};
class ChainedBlobWriterImpl;

Powered by Google App Engine
This is Rietveld 408576698