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

Unified Diff: chrome/test/base/view_event_test_base.cc

Issue 137993009: Remove more non-aura windows code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: renable the disabled tests Created 6 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
Index: chrome/test/base/view_event_test_base.cc
===================================================================
--- chrome/test/base/view_event_test_base.cc (revision 244775)
+++ chrome/test/base/view_event_test_base.cc (working copy)
@@ -85,13 +85,6 @@
void ViewEventTestBase::Done() {
base::MessageLoop::current()->Quit();
-#if defined(OS_WIN) && !defined(USE_AURA)
- // We need to post a message to tickle the Dispatcher getting called and
- // exiting out of the nested loop. Without this the quit never runs.
- if (window_)
- PostMessage(window_->GetNativeWindow(), WM_USER, 0, 0);
-#endif
-
// If we're in a nested message loop, as is the case with menus, we
// need to quit twice. The second quit does that for us. Finish all
// pending UI events before posting closure because events it may be
@@ -151,12 +144,8 @@
void ViewEventTestBase::TearDown() {
if (window_) {
-#if defined(OS_WIN) && !defined(USE_AURA)
- DestroyWindow(window_->GetNativeWindow());
-#else
window_->Close();
content::RunAllPendingInMessageLoop();
-#endif
window_ = NULL;
}
« no previous file with comments | « chrome/test/automation/proxy_launcher.cc ('k') | content/browser/renderer_host/input/touch_input_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698