From b5717a4f9f66283a9fe04ae1f9a3a89920d5b6b0 Mon Sep 17 00:00:00 2001 From: "dhollowa@chromium.org" Date: Tue, 14 Feb 2012 19:33:52 +0000 Subject: Prefer ScopedNestableTaskAllower over manual save/restore Cleanup. Changes various calls sites to use the ScopedNestableTaskAllower class to save/restore nestable task state. BUG=None TEST=Existing unit tests R=jar@chromium.org, scottbyer@chromium.org, sky@chromium.org, akalin@chromium.org, rsleevi@chromium.org, brettw@chromium.org, tony@chromium.org Review URL: https://chromiumcodereview.appspot.com/9384024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121914 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/database/database_connections.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webkit/database') diff --git a/webkit/database/database_connections.cc b/webkit/database/database_connections.cc index f38a869..e16080c 100644 --- a/webkit/database/database_connections.cc +++ b/webkit/database/database_connections.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -132,7 +132,7 @@ void DatabaseConnectionsWrapper::WaitForAllDatabasesToClose() { DCHECK(main_thread_->BelongsToCurrentThread()); if (HasOpenConnections()) { AutoReset auto_reset(&waiting_for_dbs_to_close_, true); - MessageLoop::ScopedNestableTaskAllower nestable(MessageLoop::current()); + MessageLoop::ScopedNestableTaskAllower allow(MessageLoop::current()); MessageLoop::current()->Run(); } } -- cgit v1.1