diff options
author | dgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-13 02:16:08 +0000 |
---|---|---|
committer | dgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-13 02:16:08 +0000 |
commit | a9bbd0eec792cb7d604b3fe221583b21550394c8 (patch) | |
tree | 51aebbf2ba72019ee0c43fd054089c0c4cba69d2 /content/renderer/render_thread_impl.cc | |
parent | d75c0f0c65a0bfc0d14885a8de47cda2e8f265b8 (diff) | |
download | chromium_src-a9bbd0eec792cb7d604b3fe221583b21550394c8.zip chromium_src-a9bbd0eec792cb7d604b3fe221583b21550394c8.tar.gz chromium_src-a9bbd0eec792cb7d604b3fe221583b21550394c8.tar.bz2 |
Add DCHECK in IndexedDBDispatcher::ThreadSpecificInstance to ensure
IndexedDBDispatcher doesn't get re-created during worker shutdown.
This could happen if there are IDB objects that survive the call to
didStopWorkerRunLoop.
This CL also makes RenderThreadImpl call new IndexedDBDispatcher
instead of IndexedDBDispatcher::ThreadSpecificInstance to avoid
hitting that DCHECK in tests. WebRTCAudioDeviceTest creates a
RenderThreadImpl object, deletes it, and creates another render
thread object, all on the same thread.
BUG=121734
TEST=
Review URL: http://codereview.chromium.org/10052005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132128 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_thread_impl.cc')
-rw-r--r-- | content/renderer/render_thread_impl.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc index 09832aa9..a047050 100644 --- a/content/renderer/render_thread_impl.cc +++ b/content/renderer/render_thread_impl.cc @@ -32,7 +32,6 @@ #include "content/common/gpu/gpu_messages.h" #include "content/common/indexed_db/indexed_db_dispatcher.h" #include "content/common/indexed_db/indexed_db_message_filter.h" -#include "content/common/indexed_db/proxy_webidbfactory_impl.h" #include "content/common/npobject_util.h" #include "content/common/plugin_messages.h" #include "content/common/resource_dispatcher.h" @@ -210,8 +209,7 @@ void RenderThreadImpl::Init() { compositor_initialized_ = false; appcache_dispatcher_.reset(new AppCacheDispatcher(Get())); - main_thread_indexed_db_dispatcher_.reset( - IndexedDBDispatcher::ThreadSpecificInstance()); + main_thread_indexed_db_dispatcher_.reset(new IndexedDBDispatcher()); media_stream_center_ = NULL; |