commit | a4f28ecfbc76a9caadec6c17aa53630d2a774c72 | [log] [tgz] |
---|---|---|
author | fdoray <[email protected]> | Fri Jun 10 00:08:58 2016 |
committer | Commit bot <[email protected]> | Fri Jun 10 00:10:56 2016 |
tree | ae4776cceb4660317319bb0f3a25cd7f8a5cdef5 | |
parent | 56791d1281df6c3b1959c43f32a0edbc6897be35 [diff] [blame] |
Add RunLoop::QuitWhenIdle(). This will facilitate the removal of calls to MessageLoop::QuitWhenIdle(). BUG=616447 Review-Url: https://codereview.chromium.org/2045263004 Cr-Commit-Position: refs/heads/master@{#399053}
diff --git a/base/run_loop.cc b/base/run_loop.cc index 4e425c9..7a957533 100644 --- a/base/run_loop.cc +++ b/base/run_loop.cc
@@ -51,6 +51,10 @@ } } +void RunLoop::QuitWhenIdle() { + quit_when_idle_received_ = true; +} + base::Closure RunLoop::QuitClosure() { return base::Bind(&RunLoop::Quit, weak_factory_.GetWeakPtr()); }