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

Unified Diff: ash/test/test_shell_delegate.cc

Issue 2434463004: mash: Move directly linked NewWindowDelegate to mojom::NewWindowClient. (Closed)
Patch Set: Comments from James; rename to NewWindowClientProxy. Created 4 years, 2 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/test/test_shell_delegate.cc
diff --git a/ash/test/test_shell_delegate.cc b/ash/test/test_shell_delegate.cc
index 42b6952bf9398de90c1dfc13eb86093b54827fa7..8e2fceacf5eac1fa20f0ab562ae3e160f06ff650 100644
--- a/ash/test/test_shell_delegate.cc
+++ b/ash/test/test_shell_delegate.cc
@@ -11,7 +11,6 @@
#include "ash/common/default_accessibility_delegate.h"
#include "ash/common/gpu_support_stub.h"
#include "ash/common/media_delegate.h"
-#include "ash/common/new_window_delegate.h"
#include "ash/common/palette_delegate.h"
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/test/test_session_state_delegate.h"
@@ -39,26 +38,6 @@ namespace ash {
namespace test {
namespace {
-class NewWindowDelegateImpl : public NewWindowDelegate {
- public:
- NewWindowDelegateImpl() {}
- ~NewWindowDelegateImpl() override {}
-
- private:
- // NewWindowDelegate:
- void NewTab() override {}
- void NewWindow(bool incognito) override {}
- void OpenFileManager() override {}
- void OpenCrosh() override {}
- void OpenGetHelp() override {}
- void RestoreTab() override {}
- void ShowKeyboardOverlay() override {}
- void ShowTaskManager() override {}
- void OpenFeedbackPage() override {}
-
- DISALLOW_COPY_AND_ASSIGN(NewWindowDelegateImpl);
-};
-
class MediaDelegateImpl : public MediaDelegate {
public:
MediaDelegateImpl() : state_(MEDIA_CAPTURE_NONE) {}
@@ -179,10 +158,6 @@ AccessibilityDelegate* TestShellDelegate::CreateAccessibilityDelegate() {
return new DefaultAccessibilityDelegate();
}
-NewWindowDelegate* TestShellDelegate::CreateNewWindowDelegate() {
- return new NewWindowDelegateImpl;
-}
-
MediaDelegate* TestShellDelegate::CreateMediaDelegate() {
return new MediaDelegateImpl;
}

Powered by Google App Engine
This is Rietveld 408576698