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

Unified Diff: chrome/browser/safe_browsing/threat_details_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
« no previous file with comments | « chrome/browser/safe_browsing/threat_details_history.cc ('k') | chrome/browser/safe_browsing/ui_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/threat_details_unittest.cc
diff --git a/chrome/browser/safe_browsing/threat_details_unittest.cc b/chrome/browser/safe_browsing/threat_details_unittest.cc
index 18cb1cdd754ebeb682627544558ef6b2974c3150..33d428dc0492503dd822d7b5d3284ca6f0a99aa3 100644
--- a/chrome/browser/safe_browsing/threat_details_unittest.cc
+++ b/chrome/browser/safe_browsing/threat_details_unittest.cc
@@ -223,8 +223,8 @@ class ThreatDetailsTest : public ChromeRenderViewHostTestHarness {
bool did_proceed,
int num_visit) {
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
- base::Bind(&ThreatDetails::FinishCollection, report,
- did_proceed, num_visit));
+ base::BindOnce(&ThreatDetails::FinishCollection,
+ report, did_proceed, num_visit));
// Wait for the callback (SendSerializedThreatDetails).
DVLOG(1) << "Waiting for SendSerializedThreatDetails";
base::RunLoop run_loop;
@@ -1079,8 +1079,8 @@ TEST_F(ThreatDetailsTest, HTTPCache) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&FillCache,
- base::RetainedRef(profile()->GetRequestContext())));
+ base::BindOnce(&FillCache,
+ base::RetainedRef(profile()->GetRequestContext())));
// The cache collection starts after the IPC from the DOM is fired.
std::vector<SafeBrowsingHostMsg_ThreatDOMDetails_Node> params;
@@ -1162,8 +1162,8 @@ TEST_F(ThreatDetailsTest, HttpsResourceSanitization) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&FillCacheHttps,
- base::RetainedRef(profile()->GetRequestContext())));
+ base::BindOnce(&FillCacheHttps,
+ base::RetainedRef(profile()->GetRequestContext())));
// The cache collection starts after the IPC from the DOM is fired.
std::vector<SafeBrowsingHostMsg_ThreatDOMDetails_Node> params;
« no previous file with comments | « chrome/browser/safe_browsing/threat_details_history.cc ('k') | chrome/browser/safe_browsing/ui_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698