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

Unified Diff: chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate_unittest.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/runtime/chrome_runtime_api_delegate_unittest.cc
diff --git a/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate_unittest.cc b/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate_unittest.cc
index 7205a5f0ccb53a98abd246f810e5801222e9e063..3a52e931e0c5228f56b8d984c218b18bd805b01e 100644
--- a/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate_unittest.cc
+++ b/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate_unittest.cc
@@ -109,11 +109,12 @@ class DownloaderTestDelegate : public ExtensionDownloaderTestDelegate {
no_updates_.erase(no_update);
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
- base::Bind(&ExtensionDownloaderDelegate::OnExtensionDownloadFailed,
- base::Unretained(delegate), id,
- ExtensionDownloaderDelegate::NO_UPDATE_AVAILABLE,
- ExtensionDownloaderDelegate::PingResult(),
- fetch_data->request_ids()));
+ base::BindOnce(
+ &ExtensionDownloaderDelegate::OnExtensionDownloadFailed,
+ base::Unretained(delegate), id,
+ ExtensionDownloaderDelegate::NO_UPDATE_AVAILABLE,
+ ExtensionDownloaderDelegate::PingResult(),
+ fetch_data->request_ids()));
continue;
}
auto update = updates_.find(id);
@@ -123,7 +124,7 @@ class DownloaderTestDelegate : public ExtensionDownloaderTestDelegate {
updates_.erase(update);
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
- base::Bind(
+ base::BindOnce(
&ExtensionDownloaderDelegate::OnExtensionDownloadFinished,
base::Unretained(delegate), info,
false /* file_ownership_passed */, GURL(), version,

Powered by Google App Engine
This is Rietveld 408576698