| Index: base/files/file_path_watcher_unittest.cc
|
| diff --git a/base/files/file_path_watcher_unittest.cc b/base/files/file_path_watcher_unittest.cc
|
| index c35d4cf311003e1158c5de4c6efa0450f3f18d86..6bfa71f0545c430dd094622587cba2aff566cf60 100644
|
| --- a/base/files/file_path_watcher_unittest.cc
|
| +++ b/base/files/file_path_watcher_unittest.cc
|
| @@ -196,7 +196,7 @@ class FilePathWatcherTest : public testing::Test {
|
|
|
| bool WaitForEvents() WARN_UNUSED_RESULT {
|
| collector_->Reset();
|
| - loop_.Run();
|
| + RunLoop().Run();
|
| return collector_->Success();
|
| }
|
|
|
| @@ -890,9 +890,9 @@ TEST_F(FilePathWatcherTest, DirAttributesChanged) {
|
| // We should not get notified in this case as it hasn't affected our ability
|
| // to access the file.
|
| ASSERT_TRUE(ChangeFilePermissions(test_dir1, Read, false));
|
| - loop_.PostDelayedTask(FROM_HERE,
|
| - MessageLoop::QuitWhenIdleClosure(),
|
| - TestTimeouts::tiny_timeout());
|
| + loop_.task_runner()->PostDelayedTask(FROM_HERE,
|
| + MessageLoop::QuitWhenIdleClosure(),
|
| + TestTimeouts::tiny_timeout());
|
| ASSERT_FALSE(WaitForEvents());
|
| ASSERT_TRUE(ChangeFilePermissions(test_dir1, Read, true));
|
|
|
|
|