Index: win8/metro_driver/chrome_app_view_ash.cc |
diff --git a/win8/metro_driver/chrome_app_view_ash.cc b/win8/metro_driver/chrome_app_view_ash.cc |
index 2f615d3d8001fc3363a30eb053532fe9e80a2cc8..0d1ea8b2190982bbc3a65cd77dea2419a77871b4 100644 |
--- a/win8/metro_driver/chrome_app_view_ash.cc |
+++ b/win8/metro_driver/chrome_app_view_ash.cc |
@@ -971,6 +971,9 @@ void ChromeAppViewAsh::OnMetroExit(MetroTerminateMethod method) { |
if (ui_channel_) |
ui_channel_->Close(); |
+ HWND core_window = core_window_hwnd(); |
+ ::PostMessage(core_window, WM_CLOSE, 0, 0); |
+ |
Shrikant Kelkar
2014/09/12 21:53:29
Instead of using multiple close methods may be mer
ananta
2014/09/12 23:49:58
This function is fragile and the ordering of state
|
globals.app_exit->Exit(); |
} |
} |