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

Unified Diff: chrome/browser/sync_file_system/local/sync_file_system_backend.cc

Issue 2826943002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/sync_file_system (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/sync_file_system/local/sync_file_system_backend.cc
diff --git a/chrome/browser/sync_file_system/local/sync_file_system_backend.cc b/chrome/browser/sync_file_system/local/sync_file_system_backend.cc
index 3499e35153af16559f5fe625dadd45fb929c4f2a..a66562eb2f2dd681681e36db78f8cc9a46965afc 100644
--- a/chrome/browser/sync_file_system/local/sync_file_system_backend.cc
+++ b/chrome/browser/sync_file_system/local/sync_file_system_backend.cc
@@ -272,8 +272,8 @@ void SyncFileSystemBackend::InitializeSyncFileSystemService(
// It is safe to pass Unretained(this) (see comments in OpenFileSystem()).
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- base::Bind(&SyncFileSystemBackend::InitializeSyncFileSystemService,
- base::Unretained(this), origin_url, callback));
+ base::BindOnce(&SyncFileSystemBackend::InitializeSyncFileSystemService,
+ base::Unretained(this), origin_url, callback));
return;
}
@@ -302,9 +302,10 @@ void SyncFileSystemBackend::DidInitializeSyncFileSystemService(
// It is safe to pass Unretained(this) since |context| owns it.
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&SyncFileSystemBackend::DidInitializeSyncFileSystemService,
- base::Unretained(this), base::RetainedRef(context),
- origin_url, type, mode, callback, status));
+ base::BindOnce(
+ &SyncFileSystemBackend::DidInitializeSyncFileSystemService,
+ base::Unretained(this), base::RetainedRef(context), origin_url,
+ type, mode, callback, status));
return;
}

Powered by Google App Engine
This is Rietveld 408576698