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; |
} |