Index: chrome/browser/renderer_host/resource_message_filter.cc |
=================================================================== |
--- chrome/browser/renderer_host/resource_message_filter.cc (revision 20100) |
+++ chrome/browser/renderer_host/resource_message_filter.cc (working copy) |
@@ -175,11 +175,8 @@ |
ResourceMessageFilter::~ResourceMessageFilter() { |
// This function should be called on the IO thread. |
- DCHECK(MessageLoop::current() == |
- ChromeThread::GetMessageLoop(ChromeThread::IO)); |
+ DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO)); |
- dom_storage_dispatcher_host_->Shutdown(); |
- |
// Let interested observers know we are being deleted. |
NotificationService::current()->Notify( |
NotificationType::RESOURCE_MESSAGE_FILTER_SHUTDOWN, |
@@ -452,8 +449,7 @@ |
void ResourceMessageFilter::OnPluginMessage(const FilePath& plugin_path, |
const std::vector<uint8>& data) { |
- DCHECK(MessageLoop::current() == |
- ChromeThread::GetMessageLoop(ChromeThread::IO)); |
+ DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO)); |
ChromePluginLib *chrome_plugin = ChromePluginLib::Find(plugin_path); |
if (chrome_plugin) { |
@@ -466,8 +462,7 @@ |
void ResourceMessageFilter::OnPluginSyncMessage(const FilePath& plugin_path, |
const std::vector<uint8>& data, |
std::vector<uint8> *retval) { |
- DCHECK(MessageLoop::current() == |
- ChromeThread::GetMessageLoop(ChromeThread::IO)); |
+ DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO)); |
ChromePluginLib *chrome_plugin = ChromePluginLib::Find(plugin_path); |
if (chrome_plugin) { |