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

Unified Diff: chrome/browser/extensions/api/image_writer_private/write_from_url_operation_unittest.cc

Issue 2825963003: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/extensions (Closed)
Patch Set: Created 3 years, 8 months 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/extensions/api/image_writer_private/write_from_url_operation_unittest.cc
diff --git a/chrome/browser/extensions/api/image_writer_private/write_from_url_operation_unittest.cc b/chrome/browser/extensions/api/image_writer_private/write_from_url_operation_unittest.cc
index 21d863904a5515022c2bb487f4e5f205908dfd5d..db1edc5e082af3929580ae9568c5a457965f2bf4 100644
--- a/chrome/browser/extensions/api/image_writer_private/write_from_url_operation_unittest.cc
+++ b/chrome/browser/extensions/api/image_writer_private/write_from_url_operation_unittest.cc
@@ -162,9 +162,8 @@ TEST_F(ImageWriterWriteFromUrlOperationTest, DownloadFile) {
.Times(AnyNumber());
content::BrowserThread::PostTask(
- content::BrowserThread::FILE,
- FROM_HERE,
- base::Bind(&OperationForTest::Download, operation, quit_closure));
+ content::BrowserThread::FILE, FROM_HERE,
+ base::BindOnce(&OperationForTest::Download, operation, quit_closure));
runloop.Run();
@@ -200,11 +199,10 @@ TEST_F(ImageWriterWriteFromUrlOperationTest, VerifyFile) {
100)).Times(AtLeast(1));
operation->SetImagePath(test_utils_.GetImagePath());
- content::BrowserThread::PostTask(content::BrowserThread::FILE,
- FROM_HERE,
- base::Bind(&OperationForTest::VerifyDownload,
- operation,
- base::Bind(&base::DoNothing)));
+ content::BrowserThread::PostTask(
+ content::BrowserThread::FILE, FROM_HERE,
+ base::BindOnce(&OperationForTest::VerifyDownload, operation,
+ base::Bind(&base::DoNothing)));
base::RunLoop().RunUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698