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

Unified Diff: chrome/browser/ui/webui/quota_internals/quota_internals_proxy.cc

Issue 2824363002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/ui (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/ui/webui/quota_internals/quota_internals_proxy.cc
diff --git a/chrome/browser/ui/webui/quota_internals/quota_internals_proxy.cc b/chrome/browser/ui/webui/quota_internals/quota_internals_proxy.cc
index 2e88070bc6cc3642940e7e9f93288e96426b05d1..923f99df4abaf734130dcbdc566078fd714f1c05 100644
--- a/chrome/browser/ui/webui/quota_internals/quota_internals_proxy.cc
+++ b/chrome/browser/ui/webui/quota_internals/quota_internals_proxy.cc
@@ -28,7 +28,7 @@ void QuotaInternalsProxy::RequestInfo(
if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&QuotaInternalsProxy::RequestInfo, this, quota_manager));
+ base::BindOnce(&QuotaInternalsProxy::RequestInfo, this, quota_manager));
return;
}
quota_manager_ = quota_manager;
@@ -72,18 +72,18 @@ void QuotaInternalsProxy::RequestInfo(
QuotaInternalsProxy::~QuotaInternalsProxy() {}
-#define RELAY_TO_HANDLER(func, arg_t) \
- void QuotaInternalsProxy::func(arg_t arg) { \
- if (!handler_) \
- return; \
- if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) { \
- BrowserThread::PostTask( \
- BrowserThread::UI, FROM_HERE, \
- base::Bind(&QuotaInternalsProxy::func, this, arg)); \
- return; \
- } \
- \
- handler_->func(arg); \
+#define RELAY_TO_HANDLER(func, arg_t) \
+ void QuotaInternalsProxy::func(arg_t arg) { \
+ if (!handler_) \
+ return; \
+ if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) { \
+ BrowserThread::PostTask( \
+ BrowserThread::UI, FROM_HERE, \
+ base::BindOnce(&QuotaInternalsProxy::func, this, arg)); \
+ return; \
+ } \
+ \
+ handler_->func(arg); \
}
RELAY_TO_HANDLER(ReportAvailableSpace, int64_t)

Powered by Google App Engine
This is Rietveld 408576698