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

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

Issue 417573004: indexeddb: Removed use of dangling ptr in writeBlobToFileOnIOThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also scoped LocalWriteClosure::task_runner_ 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_context_impl.h
diff --git a/content/browser/indexed_db/indexed_db_context_impl.h b/content/browser/indexed_db/indexed_db_context_impl.h
index 1d8c1624561e0688fa32c7e156072c49c893d65a..5debfda19846007142d9b588f2f5a379f579d35f 100644
--- a/content/browser/indexed_db/indexed_db_context_impl.h
+++ b/content/browser/indexed_db/indexed_db_context_impl.h
@@ -55,7 +55,7 @@ class CONTENT_EXPORT IndexedDBContextImpl
void SetForceKeepSessionState() { force_keep_session_state_ = true; }
// IndexedDBContext implementation:
- virtual base::TaskRunner* TaskRunner() const OVERRIDE;
+ virtual base::SequencedTaskRunner* TaskRunner() const OVERRIDE;
virtual std::vector<IndexedDBInfo> GetAllOriginsInfo() OVERRIDE;
virtual int64 GetOriginDiskUsage(const GURL& origin_url) OVERRIDE;
virtual void DeleteForOrigin(const GURL& origin_url) OVERRIDE;
@@ -146,7 +146,7 @@ class CONTENT_EXPORT IndexedDBContextImpl
bool force_keep_session_state_;
scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_;
- base::SequencedTaskRunner* task_runner_;
+ scoped_refptr<base::SequencedTaskRunner> task_runner_;
scoped_ptr<std::set<GURL> > origin_set_;
OriginToSizeMap origin_size_map_;
OriginToSizeMap space_available_map_;

Powered by Google App Engine
This is Rietveld 408576698