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

Unified Diff: ash/mus/shell_delegate_mus.cc

Issue 2154523002: Move AccessibilityDelegate ownership to ash::WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setmediadelegate
Patch Set: cleanup, fix test Created 4 years, 5 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: ash/mus/shell_delegate_mus.cc
diff --git a/ash/mus/shell_delegate_mus.cc b/ash/mus/shell_delegate_mus.cc
index 7474a8967ecf2332be64b48598d08315b9bc9d0a..baf28e17ecda1fbf905aaf0423db06a0856747c0 100644
--- a/ash/mus/shell_delegate_mus.cc
+++ b/ash/mus/shell_delegate_mus.cc
@@ -6,12 +6,12 @@
#include <utility>
-#include "ash/common/default_accessibility_delegate.h"
#include "ash/common/gpu_support_stub.h"
#include "ash/common/media_delegate.h"
#include "ash/common/pointer_watcher_delegate.h"
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/system/tray/default_system_tray_delegate.h"
+#include "ash/mus/accessibility_delegate_mus.h"
#include "base/memory/ptr_util.h"
#include "base/strings/string16.h"
#include "components/user_manager/user_info_impl.h"
@@ -98,8 +98,12 @@ class MediaDelegateStub : public MediaDelegate {
} // namespace
ShellDelegateMus::ShellDelegateMus(
- std::unique_ptr<app_list::AppListPresenter> app_list_presenter)
- : app_list_presenter_(std::move(app_list_presenter)) {}
+ std::unique_ptr<app_list::AppListPresenter> app_list_presenter,
+ shell::Connector* connector)
+ : app_list_presenter_(std::move(app_list_presenter)),
+ connector_(connector) {
+ DCHECK(connector_);
+}
ShellDelegateMus::~ShellDelegateMus() {}
@@ -179,8 +183,7 @@ SessionStateDelegate* ShellDelegateMus::CreateSessionStateDelegate() {
}
AccessibilityDelegate* ShellDelegateMus::CreateAccessibilityDelegate() {
- NOTIMPLEMENTED() << " Using the default AccessibilityDelegate implementation";
- return new DefaultAccessibilityDelegate;
+ return new AccessibilityDelegateMus(connector_);
}
NewWindowDelegate* ShellDelegateMus::CreateNewWindowDelegate() {

Powered by Google App Engine
This is Rietveld 408576698