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

Unified Diff: ash/mus/accessibility_delegate_mus.cc

Issue 2503063003: Add service name constant for UI service. (Closed)
Patch Set: . Created 4 years, 1 month 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/mus/accelerators/accelerator_controller_delegate_mus.cc ('k') | ash/mus/app_launch_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/accessibility_delegate_mus.cc
diff --git a/ash/mus/accessibility_delegate_mus.cc b/ash/mus/accessibility_delegate_mus.cc
index 1462507791ac26bc46ff04cbc9042a1e821aae9e..08e7ece102ed3ac346aba6b5453620b9f4718e6d 100644
--- a/ash/mus/accessibility_delegate_mus.cc
+++ b/ash/mus/accessibility_delegate_mus.cc
@@ -5,6 +5,7 @@
#include "ash/mus/accessibility_delegate_mus.h"
#include "services/service_manager/public/cpp/connector.h"
+#include "services/ui/public/interfaces/constants.mojom.h"
namespace ash {
@@ -16,8 +17,10 @@ AccessibilityDelegateMus::~AccessibilityDelegateMus() {}
ui::mojom::AccessibilityManager*
AccessibilityDelegateMus::GetAccessibilityManager() {
- if (!accessibility_manager_ptr_.is_bound())
- connector_->ConnectToInterface("ui", &accessibility_manager_ptr_);
+ if (!accessibility_manager_ptr_.is_bound()) {
+ connector_->ConnectToInterface(ui::mojom::kServiceName,
+ &accessibility_manager_ptr_);
+ }
return accessibility_manager_ptr_.get();
}
« no previous file with comments | « ash/mus/accelerators/accelerator_controller_delegate_mus.cc ('k') | ash/mus/app_launch_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698