Index: content/browser/indexed_db/cursor_impl.h |
diff --git a/content/browser/indexed_db/cursor_impl.h b/content/browser/indexed_db/cursor_impl.h |
index 69254289cd27628972935caaf6d7bd1ea6c3acc8..7074444fe92ef4eadd442b5a3a56f9c18035fafd 100644 |
--- a/content/browser/indexed_db/cursor_impl.h |
+++ b/content/browser/indexed_db/cursor_impl.h |
@@ -24,7 +24,7 @@ class CursorImpl : public ::indexed_db::mojom::Cursor { |
public: |
CursorImpl(std::unique_ptr<IndexedDBCursor> cursor, |
const url::Origin& origin, |
- scoped_refptr<IndexedDBDispatcherHost> dispatcher_host); |
+ IndexedDBDispatcherHost* dispatcher_host); |
~CursorImpl() override; |
// ::indexed_db::mojom::Cursor implementation |
@@ -47,7 +47,9 @@ class CursorImpl : public ::indexed_db::mojom::Cursor { |
class IDBThreadHelper; |
IDBThreadHelper* helper_; |
- scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; |
+ // This raw pointer is safe because all CursorImpl instances are owned by an |
+ // IndexedDBDispatcherHost. |
+ IndexedDBDispatcherHost* dispatcher_host_; |
const url::Origin origin_; |
scoped_refptr<base::SingleThreadTaskRunner> idb_runner_; |