summaryrefslogtreecommitdiffstats
path: root/base/message_loop.h
diff options
context:
space:
mode:
authordcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-10 19:44:25 +0000
committerdcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-10 19:44:25 +0000
commit45ce1e2053c8fbffec80e052a6d4bfa9494fac76 (patch)
treeda313548ec6cf355be9bdfa7ac9d7abe28d9584e /base/message_loop.h
parent1cb1a240b45493ae160fc8d822e332a5ce07d2e1 (diff)
downloadchromium_src-45ce1e2053c8fbffec80e052a6d4bfa9494fac76.zip
chromium_src-45ce1e2053c8fbffec80e052a6d4bfa9494fac76.tar.gz
chromium_src-45ce1e2053c8fbffec80e052a6d4bfa9494fac76.tar.bz2
Remove MessageLoop::QuitTask.
BUG=none TEST=compiles Review URL: http://codereview.chromium.org/8894033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113958 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.h')
-rw-r--r--base/message_loop.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/base/message_loop.h b/base/message_loop.h
index 1098703..28ccd4e 100644
--- a/base/message_loop.h
+++ b/base/message_loop.h
@@ -238,26 +238,16 @@ class BASE_EXPORT MessageLoop : public base::MessagePump::Delegate {
// messages. This method may only be called on the same thread that called
// Run, and Run must still be on the call stack.
//
- // Use QuitTask or QuitClosure if you need to Quit another thread's
- // MessageLoop, but note that doing so is fairly dangerous if the target
- // thread makes nested calls to MessageLoop::Run. The problem being that you
- // won't know which nested run loop you are quitting, so be careful!
+ // Use QuitClosure if you need to Quit another thread's MessageLoop, but note
+ // that doing so is fairly dangerous if the target thread makes nested calls
+ // to MessageLoop::Run. The problem being that you won't know which nested
+ // run loop you are quitting, so be careful!
void Quit();
// This method is a variant of Quit, that does not wait for pending messages
// to be processed before returning from Run.
void QuitNow();
- // Invokes Quit on the current MessageLoop when run. Useful to schedule an
- // arbitrary MessageLoop to Quit.
- // TODO(jhawkins): Remove once task.h is removed.
- class QuitTask : public Task {
- public:
- virtual void Run() OVERRIDE {
- MessageLoop::current()->Quit();
- }
- };
-
// Invokes Quit on the current MessageLoop when run. Useful to schedule an
// arbitrary MessageLoop to Quit.
static base::Closure QuitClosure();