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

Unified Diff: chrome/browser/extensions/api/messaging/message_property_provider.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/messaging/message_property_provider.cc
diff --git a/chrome/browser/extensions/api/messaging/message_property_provider.cc b/chrome/browser/extensions/api/messaging/message_property_provider.cc
index d0988d4bdadd2bd8cf3a7fcca8a5cc0279ec753d..abf18ab30a6450bc2cf13b97e31b278b0085396c 100644
--- a/chrome/browser/extensions/api/messaging/message_property_provider.cc
+++ b/chrome/browser/extensions/api/messaging/message_property_provider.cc
@@ -37,12 +37,11 @@ void MessagePropertyProvider::GetChannelID(Profile* profile,
}
scoped_refptr<net::URLRequestContextGetter> request_context_getter(
profile->GetRequestContext());
- content::BrowserThread::PostTask(content::BrowserThread::IO, FROM_HERE,
- base::Bind(&MessagePropertyProvider::GetChannelIDOnIOThread,
- base::ThreadTaskRunnerHandle::Get(),
- request_context_getter,
- source_url.host(),
- reply));
+ content::BrowserThread::PostTask(
+ content::BrowserThread::IO, FROM_HERE,
+ base::BindOnce(&MessagePropertyProvider::GetChannelIDOnIOThread,
+ base::ThreadTaskRunnerHandle::Get(),
+ request_context_getter, source_url.host(), reply));
}
// Helper struct to bind the memory addresses that will be written to by
@@ -101,7 +100,7 @@ void MessagePropertyProvider::GotChannelID(
}
std::string jwk_str;
base::JSONWriter::Write(jwk_value, &jwk_str);
- original_task_runner->PostTask(FROM_HERE, base::Bind(reply, jwk_str));
+ original_task_runner->PostTask(FROM_HERE, base::BindOnce(reply, jwk_str));
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698