diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-20 08:59:52 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-20 08:59:52 +0000 |
commit | 9d434e21296a0e506552e3a660101efa3403a2fe (patch) | |
tree | 803c1135d85c4f2cfd461f8cff4b59ba155c3da1 /remoting | |
parent | b52692395da5bc509a76cb88aa6cb456eda3a82e (diff) | |
download | chromium_src-9d434e21296a0e506552e3a660101efa3403a2fe.zip chromium_src-9d434e21296a0e506552e3a660101efa3403a2fe.tar.gz chromium_src-9d434e21296a0e506552e3a660101efa3403a2fe.tar.bz2 |
Removes MessageLoop::Type checks in favor of IsCurrent on MessageLoops.
This is part of removing the MessageLoop::Type enum.
BUG=none
TEST=none
R=darin@chromium.org
Review URL: https://codereview.chromium.org/141683005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245882 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/host/desktop_process.cc | 2 | ||||
-rw-r--r-- | remoting/host/win/rdp_client.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/remoting/host/desktop_process.cc b/remoting/host/desktop_process.cc index d2cef83..4592bfd 100644 --- a/remoting/host/desktop_process.cc +++ b/remoting/host/desktop_process.cc @@ -31,7 +31,7 @@ DesktopProcess::DesktopProcess( input_task_runner_(input_task_runner), daemon_channel_name_(daemon_channel_name) { DCHECK(caller_task_runner_->BelongsToCurrentThread()); - DCHECK_EQ(base::MessageLoop::current()->type(), base::MessageLoop::TYPE_UI); + DCHECK(base::MessageLoopForUI::IsCurrent()); } DesktopProcess::~DesktopProcess() { diff --git a/remoting/host/win/rdp_client.cc b/remoting/host/win/rdp_client.cc index 30a1abc..ef7f74e 100644 --- a/remoting/host/win/rdp_client.cc +++ b/remoting/host/win/rdp_client.cc @@ -128,7 +128,7 @@ void RdpClient::Core::Connect(const webrtc::DesktopSize& screen_size, return; } - DCHECK_EQ(base::MessageLoop::current()->type(), base::MessageLoop::TYPE_UI); + DCHECK(base::MessageLoopForUI::IsCurrent()); DCHECK(!rdp_client_window_); DCHECK(!self_); |