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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_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/incident_reporting/incident_reporting_service_unittest.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc
index 02126517757a68c9797afe8a260adf99767faf1c..b3f927cec75ee52a82d8207fec8ace1ae11505c0 100644
--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc
@@ -374,7 +374,7 @@ class IncidentReportingServiceTest : public testing::Test {
// Post a task that will provide the response.
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
- base::Bind(&FakeUploader::FinishUpload, base::Unretained(this)));
+ base::BindOnce(&FakeUploader::FinishUpload, base::Unretained(this)));
}
~FakeUploader() override { on_deleted_.Run(); }
@@ -405,8 +405,8 @@ class IncidentReportingServiceTest : public testing::Test {
callback) {
// Post a task to run the callback.
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(callback, base::Passed(&binary_download),
- base::Passed(&non_binary_download)));
+ FROM_HERE, base::BindOnce(callback, base::Passed(&binary_download),
+ base::Passed(&non_binary_download)));
return std::unique_ptr<safe_browsing::LastDownloadFinder>(
new FakeDownloadFinder(on_deleted));
}
@@ -475,10 +475,9 @@ class IncidentReportingServiceTest : public testing::Test {
// Posts a task to delete the profile.
void DelayedDeleteProfile(Profile* profile) {
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE,
- base::Bind(&TestingProfileManager::DeleteTestingProfile,
- base::Unretained(&profile_manager_),
- profile->GetProfileUserName()));
+ FROM_HERE, base::BindOnce(&TestingProfileManager::DeleteTestingProfile,
+ base::Unretained(&profile_manager_),
+ profile->GetProfileUserName()));
}
// A callback run by the test fixture when a profile is added. An incident

Powered by Google App Engine
This is Rietveld 408576698