Index: content/renderer/renderer_webidbobjectstore_impl.cc |
diff --git a/content/renderer/renderer_webidbobjectstore_impl.cc b/content/renderer/renderer_webidbobjectstore_impl.cc |
index 734314bccd5d65a836d3f65cdbfda370a43c330f..451b6489ae12f37b65c1235964b3e06692c0c3c6 100644 |
--- a/content/renderer/renderer_webidbobjectstore_impl.cc |
+++ b/content/renderer/renderer_webidbobjectstore_impl.cc |
@@ -74,8 +74,7 @@ void RendererWebIDBObjectStoreImpl::get( |
WebIDBCallbacks* callbacks, |
const WebIDBTransaction& transaction, |
WebExceptionCode& ec) { |
- IndexedDBDispatcher* dispatcher = |
- RenderThreadImpl::current()->indexed_db_dispatcher(); |
+ IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance(); |
dispatcher->RequestIDBObjectStoreGet( |
IndexedDBKey(key), callbacks, idb_object_store_id_, transaction, &ec); |
} |
@@ -87,8 +86,7 @@ void RendererWebIDBObjectStoreImpl::put( |
WebIDBCallbacks* callbacks, |
const WebIDBTransaction& transaction, |
WebExceptionCode& ec) { |
- IndexedDBDispatcher* dispatcher = |
- RenderThreadImpl::current()->indexed_db_dispatcher(); |
+ IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance(); |
dispatcher->RequestIDBObjectStorePut( |
content::SerializedScriptValue(value), IndexedDBKey(key), put_mode, |
callbacks, idb_object_store_id_, transaction, &ec); |
@@ -99,8 +97,7 @@ void RendererWebIDBObjectStoreImpl::deleteFunction( |
WebIDBCallbacks* callbacks, |
const WebIDBTransaction& transaction, |
WebExceptionCode& ec) { |
- IndexedDBDispatcher* dispatcher = |
- RenderThreadImpl::current()->indexed_db_dispatcher(); |
+ IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance(); |
dispatcher->RequestIDBObjectStoreDelete( |
IndexedDBKey(key), callbacks, idb_object_store_id_, transaction, &ec); |
} |
@@ -109,8 +106,7 @@ void RendererWebIDBObjectStoreImpl::clear( |
WebIDBCallbacks* callbacks, |
const WebIDBTransaction& transaction, |
WebExceptionCode& ec) { |
- IndexedDBDispatcher* dispatcher = |
- RenderThreadImpl::current()->indexed_db_dispatcher(); |
+ IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance(); |
dispatcher->RequestIDBObjectStoreClear( |
callbacks, idb_object_store_id_, transaction, &ec); |
} |
@@ -165,8 +161,7 @@ void RendererWebIDBObjectStoreImpl::openCursor( |
unsigned short direction, WebIDBCallbacks* callbacks, |
const WebIDBTransaction& transaction, |
WebExceptionCode& ec) { |
- IndexedDBDispatcher* dispatcher = |
- RenderThreadImpl::current()->indexed_db_dispatcher(); |
+ IndexedDBDispatcher* dispatcher = IndexedDBDispatcher::Instance(); |
dispatcher->RequestIDBObjectStoreOpenCursor( |
idb_key_range, direction, callbacks, idb_object_store_id_, |
transaction, &ec); |