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

Unified Diff: content/shell/utility/shell_content_utility_client.cc

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (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
« no previous file with comments | « content/shell/utility/shell_content_utility_client.h ('k') | content/test/test_render_frame_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/utility/shell_content_utility_client.cc
diff --git a/content/shell/utility/shell_content_utility_client.cc b/content/shell/utility/shell_content_utility_client.cc
index 1ac9f8d57320a446f034d48b445b83080a207e66..429a1524e8257b3893f18f92349968e6556efbeb 100644
--- a/content/shell/utility/shell_content_utility_client.cc
+++ b/content/shell/utility/shell_content_utility_client.cc
@@ -30,7 +30,8 @@ namespace {
class TestServiceImpl : public mojom::TestService {
public:
- static void Create(mojom::TestServiceRequest request) {
+ static void Create(const service_manager::BindSourceInfo&,
+ mojom::TestServiceRequest request) {
mojo::MakeStrongBinding(base::WrapUnique(new TestServiceImpl),
std::move(request));
}
@@ -130,10 +131,12 @@ void ShellContentUtilityClient::RegisterServices(StaticServiceMap* services) {
void ShellContentUtilityClient::RegisterNetworkBinders(
service_manager::BinderRegistry* registry) {
registry->AddInterface<mojom::NetworkServiceTest>(
- base::Bind(&ShellContentUtilityClient::Create, base::Unretained(this)));
+ base::Bind(&ShellContentUtilityClient::BindNetworkServiceTestRequest,
+ base::Unretained(this)));
}
-void ShellContentUtilityClient::Create(
+void ShellContentUtilityClient::BindNetworkServiceTestRequest(
+ const service_manager::BindSourceInfo& source_info,
mojom::NetworkServiceTestRequest request) {
DCHECK(!network_service_test_);
network_service_test_ =
« no previous file with comments | « content/shell/utility/shell_content_utility_client.h ('k') | content/test/test_render_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698