Index: base/files/important_file_writer_unittest.cc |
diff --git a/base/files/important_file_writer_unittest.cc b/base/files/important_file_writer_unittest.cc |
index 265a551d0c14840b567f3a178b9c4623ba5cda43..2e18720ab73dbc2bd6f19b1fbd5485ed82b4db6b 100644 |
--- a/base/files/important_file_writer_unittest.cc |
+++ b/base/files/important_file_writer_unittest.cc |
@@ -60,7 +60,7 @@ class ImportantFileWriterTest : public testing::Test { |
TEST_F(ImportantFileWriterTest, Basic) { |
ImportantFileWriter writer(file_, |
- MessageLoopProxy::current()); |
+ MessageLoopProxy::current().get()); |
EXPECT_FALSE(file_util::PathExists(writer.path())); |
writer.WriteNow("foo"); |
loop_.RunUntilIdle(); |
@@ -71,7 +71,7 @@ TEST_F(ImportantFileWriterTest, Basic) { |
TEST_F(ImportantFileWriterTest, ScheduleWrite) { |
ImportantFileWriter writer(file_, |
- MessageLoopProxy::current()); |
+ MessageLoopProxy::current().get()); |
writer.set_commit_interval(TimeDelta::FromMilliseconds(25)); |
EXPECT_FALSE(writer.HasPendingWrite()); |
DataSerializer serializer("foo"); |
@@ -89,7 +89,7 @@ TEST_F(ImportantFileWriterTest, ScheduleWrite) { |
TEST_F(ImportantFileWriterTest, DoScheduledWrite) { |
ImportantFileWriter writer(file_, |
- MessageLoopProxy::current()); |
+ MessageLoopProxy::current().get()); |
EXPECT_FALSE(writer.HasPendingWrite()); |
DataSerializer serializer("foo"); |
writer.ScheduleWrite(&serializer); |
@@ -108,7 +108,7 @@ TEST_F(ImportantFileWriterTest, DoScheduledWrite) { |
// Flaky - http://crbug.com/109292 |
TEST_F(ImportantFileWriterTest, DISABLED_BatchingWrites) { |
ImportantFileWriter writer(file_, |
- MessageLoopProxy::current()); |
+ MessageLoopProxy::current().get()); |
writer.set_commit_interval(TimeDelta::FromMilliseconds(25)); |
DataSerializer foo("foo"), bar("bar"), baz("baz"); |
writer.ScheduleWrite(&foo); |