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

Unified Diff: ui/aura/remote_root_window_host_win.cc

Issue 130223002: Have browser process shutdown metro viewer on Metro -> Metro restart. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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: 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,

Powered by Google App Engine
This is Rietveld 408576698