summaryrefslogtreecommitdiffstats
path: root/base/files/important_file_writer_unittest.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-04 23:07:47 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-04 23:07:47 +0000
commita5a082fff5011536ba87306bc29202337499523c (patch)
tree844a8f01165fb16c24271e91e9b03552d280401d /base/files/important_file_writer_unittest.cc
parent8113f0e67d4826bf11d4f574623aae274c8cde34 (diff)
downloadchromium_src-a5a082fff5011536ba87306bc29202337499523c.zip
chromium_src-a5a082fff5011536ba87306bc29202337499523c.tar.gz
chromium_src-a5a082fff5011536ba87306bc29202337499523c.tar.bz2
Revert 180332 (speculative, BrowserAccessibilityTest.BasicAttributeTest
started failing on mac asan after this landed. I'll revert the revert if it doesn't help.) > base: Update the calls from QuitClosure() to QuitWhenIdleClosure(). > > The former is deprecated and thus should not be used anymore. The later is also > deprecated, but that will be fixed later on. > > BUG=131220 > R=darin@chromium.org > > > Review URL: https://chromiumcodereview.appspot.com/12188008 TBR=tfarina@chromium.org Review URL: https://codereview.chromium.org/12188024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180547 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/files/important_file_writer_unittest.cc')
-rw-r--r--base/files/important_file_writer_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/files/important_file_writer_unittest.cc b/base/files/important_file_writer_unittest.cc
index 970e9f6..3bd3016 100644
--- a/base/files/important_file_writer_unittest.cc
+++ b/base/files/important_file_writer_unittest.cc
@@ -79,7 +79,7 @@ TEST_F(ImportantFileWriterTest, ScheduleWrite) {
EXPECT_TRUE(writer.HasPendingWrite());
MessageLoop::current()->PostDelayedTask(
FROM_HERE,
- MessageLoop::QuitWhenIdleClosure(),
+ MessageLoop::QuitClosure(),
TimeDelta::FromMilliseconds(100));
MessageLoop::current()->Run();
EXPECT_FALSE(writer.HasPendingWrite());
@@ -97,7 +97,7 @@ TEST_F(ImportantFileWriterTest, DoScheduledWrite) {
writer.DoScheduledWrite();
MessageLoop::current()->PostDelayedTask(
FROM_HERE,
- MessageLoop::QuitWhenIdleClosure(),
+ MessageLoop::QuitClosure(),
TimeDelta::FromMilliseconds(100));
MessageLoop::current()->Run();
EXPECT_FALSE(writer.HasPendingWrite());
@@ -115,7 +115,7 @@ TEST_F(ImportantFileWriterTest, BatchingWrites) {
writer.ScheduleWrite(&baz);
MessageLoop::current()->PostDelayedTask(
FROM_HERE,
- MessageLoop::QuitWhenIdleClosure(),
+ MessageLoop::QuitClosure(),
TimeDelta::FromMilliseconds(100));
MessageLoop::current()->Run();
ASSERT_TRUE(file_util::PathExists(writer.path()));