summaryrefslogtreecommitdiffstats
path: root/base/message_loop.cc
diff options
context:
space:
mode:
authordarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-26 06:52:41 +0000
committerdarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-26 06:52:41 +0000
commitef8963176d74f4a3aef6d172c2a13e41cee49035 (patch)
treea300c383dda8610595507ca6c53e52aa015424a1 /base/message_loop.cc
parent0825e3ff2931898e9ce536b1cdcfceff7034a251 (diff)
downloadchromium_src-ef8963176d74f4a3aef6d172c2a13e41cee49035.zip
chromium_src-ef8963176d74f4a3aef6d172c2a13e41cee49035.tar.gz
chromium_src-ef8963176d74f4a3aef6d172c2a13e41cee49035.tar.bz2
revert to using MessagePumpWin on all threads
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1368 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.cc')
-rw-r--r--base/message_loop.cc15
1 files changed, 3 insertions, 12 deletions
diff --git a/base/message_loop.cc b/base/message_loop.cc
index 4528b93..cd44b92 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -64,21 +64,12 @@ MessageLoop::MessageLoop(Type type)
DCHECK(!tls_index_.Get()) << "should only have one message loop per thread";
tls_index_.Set(this);
- switch (type) {
- case TYPE_DEFAULT:
- pump_ = new base::MessagePumpDefault();
- break;
- case TYPE_UI:
- case TYPE_IO:
- // TODO(darin): Use a special pumps for UI and IO, and figure out what to
- // do for non-Windows platforms.
+ // TODO(darin): Choose the pump based on the requested type.
#if defined(OS_WIN)
- pump_ = new base::MessagePumpWin();
+ pump_ = new base::MessagePumpWin();
#else
- pump_ = new base::MessagePumpDefault();
+ pump_ = new base::MessagePumpDefault();
#endif
- break;
- }
}
MessageLoop::~MessageLoop() {