| Index: chrome/test/base/view_event_test_base.cc
|
| diff --git a/chrome/test/base/view_event_test_base.cc b/chrome/test/base/view_event_test_base.cc
|
| index a98b80ef3d96e5e80e599f71f6666bfd7e980fce..91be23d506802ec6594773321abc14c179d7b8e6 100644
|
| --- a/chrome/test/base/view_event_test_base.cc
|
| +++ b/chrome/test/base/view_event_test_base.cc
|
| @@ -68,7 +68,8 @@ void ViewEventTestBase::Done() {
|
| #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.
|
| - PostMessage(window_->GetNativeWindow(), WM_USER, 0, 0);
|
| + 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
|
|
|