summaryrefslogtreecommitdiffstats
path: root/ui/metro_viewer
diff options
context:
space:
mode:
authorzturner@chromium.org <zturner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-11 03:11:37 +0000
committerzturner@chromium.org <zturner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-11 03:11:37 +0000
commit0f48fcb931e4709f0f1a9f9f3cf6970041065bf9 (patch)
treea117d269fddf3c6ba13080cfd0d80bb0940a7832 /ui/metro_viewer
parentf8197029e47adb3512609ec18f5aa7f3059befd3 (diff)
downloadchromium_src-0f48fcb931e4709f0f1a9f9f3cf6970041065bf9.zip
chromium_src-0f48fcb931e4709f0f1a9f9f3cf6970041065bf9.tar.gz
chromium_src-0f48fcb931e4709f0f1a9f9f3cf6970041065bf9.tar.bz2
Have browser process shutdown metro viewer on Metro -> Metro restart.
Metro -> Metro restarts can happen as a result of changing about:flags, or a chrome update. In order for the metro viewer to exit, it is necessary for the browser to notify the metro viewer that it needs to close itself. This was happening for Metro -> Desktop restarts, but not for Metro -> Metro restarts. BUG=332063 Review URL: https://codereview.chromium.org/130223002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244330 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/metro_viewer')
-rw-r--r--ui/metro_viewer/metro_viewer_messages.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/metro_viewer/metro_viewer_messages.h b/ui/metro_viewer/metro_viewer_messages.h
index de213cb..6db21a0 100644
--- a/ui/metro_viewer/metro_viewer_messages.h
+++ b/ui/metro_viewer/metro_viewer_messages.h
@@ -105,6 +105,9 @@ IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_ActivateDesktop,
base::FilePath /* shortcut */,
bool /* ash exit */);
+// Request the viewer to close itself gracefully.
+IPC_MESSAGE_CONTROL0(MetroViewerHostMsg_MetroExit);
+
// Requests the viewer to open a URL in desktop mode.
IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_OpenURLOnDesktop,
base::FilePath, /* shortcut */