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

Unified Diff: content/shell/shell_win.cc

Issue 9190018: Support sharing of ContentMain and BrowserMain code with embedded use cases. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 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
« content/shell/shell.h ('K') | « content/shell/shell_main_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_win.cc
===================================================================
--- content/shell/shell_win.cc (revision 117304)
+++ content/shell/shell_win.cc (working copy)
@@ -228,8 +228,14 @@
}
case WM_DESTROY: {
delete shell;
- if (windows_.empty())
+ if (windows_.empty()) {
+#if defined(TEST_EMBEDDED_MESSAGE_LOOP)
+ // Running our own message loop so quit normally.
+ PostQuitMessage(0);
+#else
MessageLoop::current()->Quit();
+#endif
+ }
return 0;
}
« content/shell/shell.h ('K') | « content/shell/shell_main_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698