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

Unified Diff: net/socket/transport_client_socket_pool_unittest.cc

Issue 9384024: Prefer ScopedNestableTaskAllower over manual save/restore (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/socket/transport_client_socket_pool_unittest.cc
diff --git a/net/socket/transport_client_socket_pool_unittest.cc b/net/socket/transport_client_socket_pool_unittest.cc
index 301251890252e5f04358d94eac05653976f817cc..3aeda509fff9cd1e92eef1ebd7d1600398d3f290 100644
--- a/net/socket/transport_client_socket_pool_unittest.cc
+++ b/net/socket/transport_client_socket_pool_unittest.cc
@@ -797,8 +797,7 @@ class RequestSocketCallback : public TestCompletionCallbackBase {
handle_->socket()->Disconnect();
handle_->Reset();
{
- MessageLoop::ScopedNestableTaskAllower nestable(
- MessageLoop::current());
+ MessageLoop::ScopedNestableTaskAllower allow(MessageLoop::current());
MessageLoop::current()->RunAllPending();
}
within_callback_ = true;
jar (doing other things) 2012/02/11 03:24:38 again... this looks like a pattern to prevent recu

Powered by Google App Engine
This is Rietveld 408576698