Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4191)

Unified Diff: chrome/browser/extensions/extension_message_service.cc

Issue 306032: Simplify threading in browser thread by making only ChromeThread deal with di... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: a few more simplifications Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_message_service.cc
===================================================================
--- chrome/browser/extensions/extension_message_service.cc (revision 30037)
+++ chrome/browser/extensions/extension_message_service.cc (working copy)
@@ -198,8 +198,7 @@
int routing_id, const std::string& source_extension_id,
const std::string& target_extension_id,
const std::string& channel_name, ResourceMessageFilter* source) {
- DCHECK_EQ(MessageLoop::current(),
- ChromeThread::GetMessageLoop(ChromeThread::IO));
+ DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
// Create a channel ID for both sides of the channel.
int port1_id = -1;
@@ -222,8 +221,7 @@
const std::string& extension_id,
const std::string& channel_name,
ResourceMessageFilter* source) {
- DCHECK_EQ(MessageLoop::current(),
- ChromeThread::GetMessageLoop(ChromeThread::IO));
+ DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
// Create a channel ID for both sides of the channel.
int port1_id = -1;

Powered by Google App Engine
This is Rietveld 408576698