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

Unified Diff: chrome/browser/extensions/api/developer_private/developer_private_api.cc

Issue 2825963003: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/extensions (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/extensions/api/developer_private/developer_private_api.cc
diff --git a/chrome/browser/extensions/api/developer_private/developer_private_api.cc b/chrome/browser/extensions/api/developer_private/developer_private_api.cc
index 6f24801965e4b47e64c3b05d7f3c9b7dcba4f972..57b3bf7f9022b3b70d1664cfdaa8ed83665881de 100644
--- a/chrome/browser/extensions/api/developer_private/developer_private_api.cc
+++ b/chrome/browser/extensions/api/developer_private/developer_private_api.cc
@@ -1072,11 +1072,11 @@ bool DeveloperPrivateLoadDirectoryFunction::LoadByFileSystemAPI(
project_base_path_ = project_path;
- content::BrowserThread::PostTask(content::BrowserThread::FILE, FROM_HERE,
- base::Bind(&DeveloperPrivateLoadDirectoryFunction::
- ClearExistingDirectoryContent,
- this,
- project_base_path_));
+ content::BrowserThread::PostTask(
+ content::BrowserThread::FILE, FROM_HERE,
+ base::BindOnce(
+ &DeveloperPrivateLoadDirectoryFunction::ClearExistingDirectoryContent,
+ this, project_base_path_));
return true;
}
@@ -1098,10 +1098,11 @@ void DeveloperPrivateLoadDirectoryFunction::ClearExistingDirectoryContent(
pending_copy_operations_count_ = 1;
- content::BrowserThread::PostTask(content::BrowserThread::IO, FROM_HERE,
- base::Bind(&DeveloperPrivateLoadDirectoryFunction::
- ReadDirectoryByFileSystemAPI,
- this, project_path, project_path.BaseName()));
+ content::BrowserThread::PostTask(
+ content::BrowserThread::IO, FROM_HERE,
+ base::BindOnce(
+ &DeveloperPrivateLoadDirectoryFunction::ReadDirectoryByFileSystemAPI,
+ this, project_path, project_path.BaseName()));
}
void DeveloperPrivateLoadDirectoryFunction::ReadDirectoryByFileSystemAPI(
@@ -1164,9 +1165,8 @@ void DeveloperPrivateLoadDirectoryFunction::ReadDirectoryByFileSystemAPICb(
if (!pending_copy_operations_count_) {
content::BrowserThread::PostTask(
content::BrowserThread::UI, FROM_HERE,
- base::Bind(&DeveloperPrivateLoadDirectoryFunction::SendResponse,
- this,
- success_));
+ base::BindOnce(&DeveloperPrivateLoadDirectoryFunction::SendResponse,
+ this, success_));
}
}
}
@@ -1183,11 +1183,10 @@ void DeveloperPrivateLoadDirectoryFunction::SnapshotFileCallback(
return;
}
- content::BrowserThread::PostTask(content::BrowserThread::FILE, FROM_HERE,
- base::Bind(&DeveloperPrivateLoadDirectoryFunction::CopyFile,
- this,
- src_path,
- target_path));
+ content::BrowserThread::PostTask(
+ content::BrowserThread::FILE, FROM_HERE,
+ base::BindOnce(&DeveloperPrivateLoadDirectoryFunction::CopyFile, this,
+ src_path, target_path));
}
void DeveloperPrivateLoadDirectoryFunction::CopyFile(
@@ -1205,9 +1204,9 @@ void DeveloperPrivateLoadDirectoryFunction::CopyFile(
pending_copy_operations_count_--;
if (!pending_copy_operations_count_) {
- content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
- base::Bind(&DeveloperPrivateLoadDirectoryFunction::Load,
- this));
+ content::BrowserThread::PostTask(
+ content::BrowserThread::UI, FROM_HERE,
+ base::BindOnce(&DeveloperPrivateLoadDirectoryFunction::Load, this));
}
}

Powered by Google App Engine
This is Rietveld 408576698