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

Unified Diff: win8/metro_driver/chrome_app_view_ash.cc

Issue 568623002: Ensure that on Windows 7, relaunching the browser via chrome://restart or changing about:flags rela… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted changes to ui\views\controls Created 6 years, 3 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: 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();
}
}
« chrome/browser/first_run/upgrade_util_win.cc ('K') | « chrome/browser/first_run/upgrade_util_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698