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

Issue 8894033: Remove MessageLoop::QuitTask. (Closed)

Created:
9 years ago by dcheng
Modified:
9 years ago
Reviewers:
Nico
CC:
chromium-reviews, sadrul, brettw-cc_chromium.org
Visibility:
Public.

Description

Remove MessageLoop::QuitTask. BUG=none TEST=compiles Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113958

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -14 lines) Patch
M base/message_loop.h View 1 chunk +4 lines, -14 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
dcheng
I did a make all locally, and there don't seem to be any more references ...
9 years ago (2011-12-10 19:06:23 UTC) #1
Nico
9 years ago (2011-12-10 19:28:02 UTC) #2
LGTM.

I'd lgtm on rietveld, but it 500s :-/

On Sat, Dec 10, 2011 at 11:06 AM,  <dcheng@chromium.org> wrote:
> Reviewers: Nico,
>
> Message:
> I did a make all locally, and there don't seem to be any more references to
> it.
>
> Description:
> Remove MessageLoop::QuitTask.
>
> BUG=none
> TEST=compiles
>
>
> Please review this at http://codereview.chromium.org/8894033/
>
> SVN Base: svn://svn.chromium.org/chrome/trunk/src
>
> Affected files:
>  M base/message_loop.h
>
>
> Index: base/message_loop.h
> diff --git a/base/message_loop.h b/base/message_loop.h
> index
>
10987032b210e6080e678e65ddc8a89db15d15fc..28ccd4eefa825460b9c3e20b50dc52d0e7c9d49b
> 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();
>
>

Powered by Google App Engine
This is Rietveld 408576698