| Index: content/renderer/renderer_webidbcursor_impl.cc
|
| diff --git a/content/renderer/renderer_webidbcursor_impl.cc b/content/renderer/renderer_webidbcursor_impl.cc
|
| index 58113ad2707909a6805a03225443126bd1015e0a..eff8f84afc8df1195add1aa4c460d25825838f77 100644
|
| --- a/content/renderer/renderer_webidbcursor_impl.cc
|
| +++ b/content/renderer/renderer_webidbcursor_impl.cc
|
| @@ -28,8 +28,7 @@ RendererWebIDBCursorImpl::~RendererWebIDBCursorImpl() {
|
| // any such pointers.
|
| ChildThread::current()->Send(new IndexedDBHostMsg_CursorDestroyed(
|
| idb_cursor_id_));
|
| - IndexedDBDispatcher* dispatcher =
|
| - RenderThreadImpl::current()->indexed_db_dispatcher();
|
| + IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance();
|
| dispatcher->CursorDestroyed(idb_cursor_id_);
|
| }
|
|
|
| @@ -55,8 +54,7 @@ WebSerializedScriptValue RendererWebIDBCursorImpl::value() const {
|
| void RendererWebIDBCursorImpl::update(const WebSerializedScriptValue& value,
|
| WebIDBCallbacks* callbacks,
|
| WebExceptionCode& ec) {
|
| - IndexedDBDispatcher* dispatcher =
|
| - RenderThreadImpl::current()->indexed_db_dispatcher();
|
| + IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance();
|
| dispatcher->RequestIDBCursorUpdate(
|
| content::SerializedScriptValue(value), callbacks, idb_cursor_id_, &ec);
|
| }
|
| @@ -64,8 +62,7 @@ void RendererWebIDBCursorImpl::update(const WebSerializedScriptValue& value,
|
| void RendererWebIDBCursorImpl::continueFunction(const WebIDBKey& key,
|
| WebIDBCallbacks* callbacks,
|
| WebExceptionCode& ec) {
|
| - IndexedDBDispatcher* dispatcher =
|
| - RenderThreadImpl::current()->indexed_db_dispatcher();
|
| + IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance();
|
|
|
| if (key.type() == WebIDBKey::InvalidType) {
|
| // No key, so this would qualify for a prefetch.
|
| @@ -100,8 +97,7 @@ void RendererWebIDBCursorImpl::continueFunction(const WebIDBKey& key,
|
|
|
| void RendererWebIDBCursorImpl::deleteFunction(WebIDBCallbacks* callbacks,
|
| WebExceptionCode& ec) {
|
| - IndexedDBDispatcher* dispatcher =
|
| - RenderThreadImpl::current()->indexed_db_dispatcher();
|
| + IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance();
|
| dispatcher->RequestIDBCursorDelete(callbacks, idb_cursor_id_, &ec);
|
| }
|
|
|
| @@ -168,8 +164,7 @@ void RendererWebIDBCursorImpl::ResetPrefetchCache() {
|
| return;
|
| }
|
|
|
| - IndexedDBDispatcher* dispatcher =
|
| - RenderThreadImpl::current()->indexed_db_dispatcher();
|
| + IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance();
|
| dispatcher->RequestIDBCursorPrefetchReset(used_prefetches_,
|
| prefetch_keys_.size(),
|
| idb_cursor_id_);
|
|
|