commit | a3658604ac48aaa8628237c42ffeaf9d197bf152 | [log] [tgz] |
---|---|---|
author | fdoray <[email protected]> | Fri Jun 10 18:23:15 2016 |
committer | Commit bot <[email protected]> | Fri Jun 10 18:25:15 2016 |
tree | cf5b763272ca77586f8817413ada5130aa8141ed | |
parent | 41f8d9c9fc759877fda11ca047bb5e9ccaa89304 [diff] [blame] |
Add RunLoop::QuitWhenIdleClosure(). BUG=616447 Review-Url: https://codereview.chromium.org/2053223004 Cr-Commit-Position: refs/heads/master@{#399234}
diff --git a/base/run_loop.cc b/base/run_loop.cc index 7a957533..a2322f8 100644 --- a/base/run_loop.cc +++ b/base/run_loop.cc
@@ -59,6 +59,10 @@ return base::Bind(&RunLoop::Quit, weak_factory_.GetWeakPtr()); } +base::Closure RunLoop::QuitWhenIdleClosure() { + return base::Bind(&RunLoop::QuitWhenIdle, weak_factory_.GetWeakPtr()); +} + bool RunLoop::BeforeRun() { DCHECK(!run_called_); run_called_ = true;