diff options
author | skyostil <skyostil@chromium.org> | 2015-06-19 10:22:54 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-19 17:23:17 +0000 |
commit | b1f02993d46e10a58aeda7acc299350381046fa6 (patch) | |
tree | c91a8a61d71addf384181afa01eaef473b33ba7b /base/threading | |
parent | e313597b5b747750dfd75d97559c2b5dba1836a8 (diff) | |
download | chromium_src-b1f02993d46e10a58aeda7acc299350381046fa6.zip chromium_src-b1f02993d46e10a58aeda7acc299350381046fa6.tar.gz chromium_src-b1f02993d46e10a58aeda7acc299350381046fa6.tar.bz2 |
base: Remove MessageLoopProxy
BUG=465354
Review URL: https://codereview.chromium.org/1180153002
Cr-Commit-Position: refs/heads/master@{#335277}
Diffstat (limited to 'base/threading')
-rw-r--r-- | base/threading/thread.h | 12 | ||||
-rw-r--r-- | base/threading/thread_unittest.cc | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/base/threading/thread.h b/base/threading/thread.h index 1b8b59d..5126491 100644 --- a/base/threading/thread.h +++ b/base/threading/thread.h @@ -155,18 +155,6 @@ class BASE_EXPORT Thread : PlatformThread::Delegate { // MessageLoop* message_loop() const { return message_loop_; } - // Returns a MessageLoopProxy for this thread. Use the MessageLoopProxy's - // PostTask methods to execute code on the thread. Returns NULL if the thread - // is not running (e.g. before Start or after Stop have been called). Callers - // can hold on to this even after the thread is gone; in this situation, - // attempts to PostTask() will fail. - // - // Note: This method is deprecated. Callers should call task_runner() instead - // and use the TaskRunner interfaces for safely interfacing with the Thread. - scoped_refptr<MessageLoopProxy> message_loop_proxy() const { - return message_loop_ ? message_loop_->message_loop_proxy() : NULL; - } - // Returns a TaskRunner for this thread. Use the TaskRunner's PostTask // methods to execute code on the thread. Returns NULL if the thread is not // running (e.g. before Start or after Stop have been called). Callers can diff --git a/base/threading/thread_unittest.cc b/base/threading/thread_unittest.cc index 926d5dd..3c35416 100644 --- a/base/threading/thread_unittest.cc +++ b/base/threading/thread_unittest.cc @@ -237,6 +237,5 @@ TEST_F(ThreadTest, CleanUp) { TEST_F(ThreadTest, ThreadNotStarted) { Thread a("Inert"); - EXPECT_EQ(nullptr, a.message_loop_proxy()); EXPECT_EQ(nullptr, a.task_runner()); } |