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

Unified Diff: content/browser/background_sync/background_sync_context.cc

Issue 2954433002: BackgroundSync: Convert to base::BindOnce/OnceCallback/OnceClosure (Closed)
Patch Set: rename local variable Created 3 years, 6 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: content/browser/background_sync/background_sync_context.cc
diff --git a/content/browser/background_sync/background_sync_context.cc b/content/browser/background_sync/background_sync_context.cc
index fcd80be6da31fccb0442a2e687aafaf22199f22b..cc81caa8652a6dddda9ba7c63b3e53480c3ea27f 100644
--- a/content/browser/background_sync/background_sync_context.cc
+++ b/content/browser/background_sync/background_sync_context.cc
@@ -31,8 +31,8 @@ void BackgroundSyncContext::Init(
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&BackgroundSyncContext::CreateBackgroundSyncManager, this,
- context));
+ base::BindOnce(&BackgroundSyncContext::CreateBackgroundSyncManager, this,
+ context));
}
void BackgroundSyncContext::Shutdown() {
@@ -40,7 +40,7 @@ void BackgroundSyncContext::Shutdown() {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&BackgroundSyncContext::ShutdownOnIO, this));
+ base::BindOnce(&BackgroundSyncContext::ShutdownOnIO, this));
}
void BackgroundSyncContext::CreateService(
@@ -50,8 +50,8 @@ void BackgroundSyncContext::CreateService(
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&BackgroundSyncContext::CreateServiceOnIOThread, this,
- base::Passed(&request)));
+ base::BindOnce(&BackgroundSyncContext::CreateServiceOnIOThread, this,
+ base::Passed(&request)));
}
void BackgroundSyncContext::ServiceHadConnectionError(

Powered by Google App Engine
This is Rietveld 408576698