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

Unified Diff: ash/mus/accelerators/accelerator_controller_delegate_mus.cc

Issue 2617883002: Add a new BindInterface() method to Connector. (Closed)
Patch Set: . Created 3 years, 11 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 | « ash/common/wm_shell.cc ('k') | ash/mus/accessibility_delegate_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/accelerators/accelerator_controller_delegate_mus.cc
diff --git a/ash/mus/accelerators/accelerator_controller_delegate_mus.cc b/ash/mus/accelerators/accelerator_controller_delegate_mus.cc
index b92ada3b63be9a46b32cf5129d2321e94f6adebd..5dd823af72b71048d8809c744b2416f158e3d501 100644
--- a/ash/mus/accelerators/accelerator_controller_delegate_mus.cc
+++ b/ash/mus/accelerators/accelerator_controller_delegate_mus.cc
@@ -129,8 +129,8 @@ void AcceleratorControllerDelegateMus::PerformAction(
#if defined(OS_CHROMEOS)
case DEV_ADD_REMOVE_DISPLAY: {
display::mojom::TestDisplayControllerPtr test_display_controller;
- window_manager_->connector()->ConnectToInterface(
- ui::mojom::kServiceName, &test_display_controller);
+ window_manager_->connector()->BindInterface(ui::mojom::kServiceName,
+ &test_display_controller);
test_display_controller->ToggleAddRemoveDisplay();
break;
}
@@ -138,8 +138,8 @@ void AcceleratorControllerDelegateMus::PerformAction(
// TODO(crbug.com/657816): This is hack. I'm just stealing the shortcut
// key to toggle display size in mus. This should be removed by launch.
display::mojom::TestDisplayControllerPtr test_display_controller;
- window_manager_->connector()->ConnectToInterface(
- ui::mojom::kServiceName, &test_display_controller);
+ window_manager_->connector()->BindInterface(ui::mojom::kServiceName,
+ &test_display_controller);
test_display_controller->ToggleDisplayResolution();
break;
}
@@ -153,8 +153,7 @@ void AcceleratorControllerDelegateMus::PerformAction(
}
case TOUCH_HUD_PROJECTION_TOGGLE: {
mash::mojom::LaunchablePtr launchable;
- window_manager_->connector()->ConnectToInterface("touch_hud",
- &launchable);
+ window_manager_->connector()->BindInterface("touch_hud", &launchable);
launchable->Launch(mash::mojom::kWindow,
mash::mojom::LaunchMode::DEFAULT);
break;
« no previous file with comments | « ash/common/wm_shell.cc ('k') | ash/mus/accessibility_delegate_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698