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

Unified Diff: chrome/browser/safe_browsing/notification_image_reporter_unittest.cc

Issue 2821193005: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/safe_browsing (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/safe_browsing/notification_image_reporter_unittest.cc
diff --git a/chrome/browser/safe_browsing/notification_image_reporter_unittest.cc b/chrome/browser/safe_browsing/notification_image_reporter_unittest.cc
index 2e0a6baf1178d34903df003f5396bb5d1db29fb7..780ff24b80713cfedb3d1f0bfe803013db051af1 100644
--- a/chrome/browser/safe_browsing/notification_image_reporter_unittest.cc
+++ b/chrome/browser/safe_browsing/notification_image_reporter_unittest.cc
@@ -51,8 +51,8 @@ class TestingNotificationImageReporter : public NotificationImageReporter {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- base::Bind(&TestingNotificationImageReporter::SkippedReportingOnUI,
- base::Unretained(this)));
+ base::BindOnce(&TestingNotificationImageReporter::SkippedReportingOnUI,
+ base::Unretained(this)));
}
private:
@@ -144,8 +144,8 @@ void NotificationImageReporterTest::SetUp() {
base::RunLoop run_loop;
BrowserThread::PostTaskAndReply(
BrowserThread::IO, FROM_HERE,
- base::Bind(&NotificationImageReporterTest::SetUpOnIO,
- base::Unretained(this)),
+ base::BindOnce(&NotificationImageReporterTest::SetUpOnIO,
+ base::Unretained(this)),
run_loop.QuitClosure());
run_loop.Run();
}
@@ -180,8 +180,9 @@ void NotificationImageReporterTest::ReportNotificationImage() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&NotificationImageReporterTest::ReportNotificationImageOnIO,
- base::Unretained(this)));
+ base::BindOnce(
+ &NotificationImageReporterTest::ReportNotificationImageOnIO,
+ base::Unretained(this)));
}
void NotificationImageReporterTest::ReportNotificationImageOnIO() {

Powered by Google App Engine
This is Rietveld 408576698