Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Unified Diff: chrome/browser/chromeos/file_manager/zip_file_creator_browsertest.cc

Issue 2537893002: Add thread checking to RunLoop, deprecate MessageLoopRunner. (Closed)
Patch Set: Fix errors caught by ThreadChecker. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/file_manager/zip_file_creator_browsertest.cc
diff --git a/chrome/browser/chromeos/file_manager/zip_file_creator_browsertest.cc b/chrome/browser/chromeos/file_manager/zip_file_creator_browsertest.cc
index ab2fecfa8dedb4cbe8bf7899de9b9a407007134c..29c46fad1ce376f587753201824fd37bfc4e94aa 100644
--- a/chrome/browser/chromeos/file_manager/zip_file_creator_browsertest.cc
+++ b/chrome/browser/chromeos/file_manager/zip_file_creator_browsertest.cc
@@ -54,11 +54,10 @@ IN_PROC_BROWSER_TEST_F(ZipFileCreatorTest, FailZipForAbsentFile) {
std::vector<base::FilePath> paths;
paths.push_back(base::FilePath(FILE_PATH_LITERAL("not.exist")));
(new ZipFileCreator(
- base::Bind(
- &TestCallback, &success, content::GetQuitTaskForRunLoop(&run_loop)),
- zip_base_dir(),
- paths,
- zip_archive_path()))->Start();
+ base::Bind(&TestCallback, &success,
+ content::GetDeferredQuitTaskForRunLoop(&run_loop)),
+ zip_base_dir(), paths, zip_archive_path()))
+ ->Start();
content::RunThisRunLoop(&run_loop);
EXPECT_FALSE(success);
@@ -84,11 +83,10 @@ IN_PROC_BROWSER_TEST_F(ZipFileCreatorTest, SomeFilesZip) {
paths.push_back(kFile1);
paths.push_back(kFile2);
(new ZipFileCreator(
- base::Bind(
- &TestCallback, &success, content::GetQuitTaskForRunLoop(&run_loop)),
- zip_base_dir(),
- paths,
- zip_archive_path()))->Start();
+ base::Bind(&TestCallback, &success,
+ content::GetDeferredQuitTaskForRunLoop(&run_loop)),
+ zip_base_dir(), paths, zip_archive_path()))
+ ->Start();
content::RunThisRunLoop(&run_loop);
EXPECT_TRUE(success);

Powered by Google App Engine
This is Rietveld 408576698