Chromium Code Reviews| Index: ui/aura/remote_root_window_host_win.cc |
| diff --git a/ui/aura/remote_root_window_host_win.cc b/ui/aura/remote_root_window_host_win.cc |
| index 18296f5e178fe4659c40143a8e4852927722e42d..cc02930bd1d6651b3162864fd819d7c34050f044 100644 |
| --- a/ui/aura/remote_root_window_host_win.cc |
| +++ b/ui/aura/remote_root_window_host_win.cc |
| @@ -142,6 +142,12 @@ void HandleActivateDesktop(const base::FilePath& shortcut, |
| ash_exit); |
| } |
| +void HandleMetroExit() { |
| + DCHECK(aura::RemoteRootWindowHostWin::Instance()); |
| + aura::RemoteRootWindowHostWin::Instance()->HandleMetroExit(); |
| +} |
| + |
| + |
|
sky
2014/01/09 16:40:05
nit: only one newline.
zturner
2014/01/10 19:00:26
Done.
|
| RemoteRootWindowHostWin* g_instance = NULL; |
| RemoteRootWindowHostWin* RemoteRootWindowHostWin::Instance() { |
| @@ -248,6 +254,13 @@ void RemoteRootWindowHostWin::HandleActivateDesktop( |
| host_->Send(new MetroViewerHostMsg_ActivateDesktop(shortcut, ash_exit)); |
| } |
| +void RemoteRootWindowHostWin::HandleMetroExit() { |
| + if (!host_) |
| + return; |
| + host_->Send(new MetroViewerHostMsg_MetroExit()); |
| +} |
| + |
| + |
| void RemoteRootWindowHostWin::HandleOpenFile( |
| const base::string16& title, |
| const base::FilePath& default_path, |