| Index: content/browser/download/download_browsertest.cc
|
| diff --git a/content/browser/download/download_browsertest.cc b/content/browser/download/download_browsertest.cc
|
| index 352f7a22b1bab423dd5bbf0a766025a6f4629aa0..ab09c1d06c6c4939c6362ec98d397652731f7681 100644
|
| --- a/content/browser/download/download_browsertest.cc
|
| +++ b/content/browser/download/download_browsertest.cc
|
| @@ -18,6 +18,7 @@
|
| #include "base/format_macros.h"
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| +#include "base/run_loop.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "base/threading/platform_thread.h"
|
| @@ -331,7 +332,7 @@ class CountingDownloadFile : public DownloadFileImpl {
|
| BrowserThread::FILE, FROM_HERE,
|
| base::Bind(&CountingDownloadFile::GetNumberActiveFiles, &result),
|
| base::MessageLoop::current()->QuitWhenIdleClosure());
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
| DCHECK_NE(-1, result);
|
| return result;
|
| }
|
| @@ -627,7 +628,7 @@ class DownloadContentTest : public ContentBrowserTest {
|
| BrowserThread::PostTask(
|
| BrowserThread::IO, FROM_HERE,
|
| base::Bind(&EnsureNoPendingDownloadJobsOnIO, &result));
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
| return result &&
|
| (CountingDownloadFile::GetNumberActiveFilesFromFileThread() == 0);
|
| }
|
|
|