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

Unified Diff: chrome/browser/data_usage/tab_id_annotator_unittest.cc

Issue 2825003002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/{a,b,c,d,e,f,g}* (Closed)
Patch Set: split rest of changes to 3 CLs 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/data_usage/tab_id_annotator_unittest.cc
diff --git a/chrome/browser/data_usage/tab_id_annotator_unittest.cc b/chrome/browser/data_usage/tab_id_annotator_unittest.cc
index 347fae02ab7f61c7ec8b5e86f4e069f944b49fef..d113823bdf14115db8c79be986f664f0aec09b19 100644
--- a/chrome/browser/data_usage/tab_id_annotator_unittest.cc
+++ b/chrome/browser/data_usage/tab_id_annotator_unittest.cc
@@ -80,7 +80,7 @@ void ExpectDataUseAndQuit(base::RunLoop* ui_run_loop,
// aren't thread safe.
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- base::Bind(&base::RunLoop::Quit, base::Unretained(ui_run_loop)));
+ base::BindOnce(&base::RunLoop::Quit, base::Unretained(ui_run_loop)));
}
// Tests that for a sample URLRequest, associated with the given
@@ -137,9 +137,9 @@ TEST_F(TabIdAnnotatorTest, AnnotateWithNoRenderFrame) {
base::RunLoop ui_run_loop;
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&TestAnnotateOnIOThread, &ui_run_loop,
- -1 /* render_process_id */, -1 /* render_frame_id */,
- -1 /* expected_tab_id */));
+ base::BindOnce(&TestAnnotateOnIOThread, &ui_run_loop,
+ -1 /* render_process_id */, -1 /* render_frame_id */,
+ -1 /* expected_tab_id */));
ui_run_loop.Run();
}
@@ -150,10 +150,10 @@ TEST_F(TabIdAnnotatorTest, AnnotateWithRenderFrameAndNoTab) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&TestAnnotateOnIOThread, &ui_run_loop,
- web_contents()->GetMainFrame()->GetProcess()->GetID(),
- web_contents()->GetMainFrame()->GetRoutingID(),
- -1 /* expected_tab_id */));
+ base::BindOnce(&TestAnnotateOnIOThread, &ui_run_loop,
+ web_contents()->GetMainFrame()->GetProcess()->GetID(),
+ web_contents()->GetMainFrame()->GetRoutingID(),
+ -1 /* expected_tab_id */));
ui_run_loop.Run();
}
@@ -167,10 +167,10 @@ TEST_F(TabIdAnnotatorTest, AnnotateWithRenderFrameAndTab) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&TestAnnotateOnIOThread, &ui_run_loop,
- web_contents()->GetMainFrame()->GetProcess()->GetID(),
- web_contents()->GetMainFrame()->GetRoutingID(),
- expected_tab_id));
+ base::BindOnce(&TestAnnotateOnIOThread, &ui_run_loop,
+ web_contents()->GetMainFrame()->GetProcess()->GetID(),
+ web_contents()->GetMainFrame()->GetRoutingID(),
+ expected_tab_id));
ui_run_loop.Run();
}

Powered by Google App Engine
This is Rietveld 408576698