 Chromium Code Reviews
 Chromium Code Reviews Issue 2434463004:
  mash: Move directly linked NewWindowDelegate to mojom::NewWindowClient.  (Closed)
    
  
    Issue 2434463004:
  mash: Move directly linked NewWindowDelegate to mojom::NewWindowClient.  (Closed) 
  | Index: ash/common/test/wm_shell_test_api.cc | 
| diff --git a/ash/common/test/wm_shell_test_api.cc b/ash/common/test/wm_shell_test_api.cc | 
| index 39305eaf885b3a2a08b839fb8c795b02124b8044..6bf303e355a9cdd6302fa4651f452d2c5ca5dbb3 100644 | 
| --- a/ash/common/test/wm_shell_test_api.cc | 
| +++ b/ash/common/test/wm_shell_test_api.cc | 
| @@ -6,6 +6,7 @@ | 
| #include "ash/common/system/tray/system_tray_delegate.h" | 
| #include "ash/common/wm_shell.h" | 
| +#include "ash/public/interfaces/new_window.mojom.h" | 
| namespace ash { | 
| @@ -18,4 +19,9 @@ void WmShellTestApi::SetSystemTrayDelegate( | 
| WmShell::Get()->SetSystemTrayDelegate(std::move(delegate)); | 
| } | 
| +void WmShellTestApi::SetNewWindowClient( | 
| + std::unique_ptr<mojom::NewWindowClient> client) { | 
| + WmShell::Get()->SetNewWindowClient(std::move(client)); | 
| 
James Cook
2016/10/21 22:22:30
Maybe directly access the member variable and get
 
Elliot Glaysher
2016/10/21 22:45:56
Done.
 | 
| +} | 
| + | 
| } // namespace ash |