| Index: ui/views/test/widget_test_mac.mm
|
| diff --git a/ui/views/test/widget_test_mac.mm b/ui/views/test/widget_test_mac.mm
|
| index 91f824c2337534181cd218cd87c4abc36158cba2..5b3f9e5bb3b849a8569ca8e2abac946dc9345312 100644
|
| --- a/ui/views/test/widget_test_mac.mm
|
| +++ b/ui/views/test/widget_test_mac.mm
|
| @@ -25,15 +25,6 @@ NSWindow* g_simulated_active_window_ = nil;
|
| } // namespace
|
|
|
| // static
|
| -void WidgetTest::SimulateNativeDestroy(Widget* widget) {
|
| - // Retain the window while closing it, otherwise the window may lose its last
|
| - // owner before -[NSWindow close] completes (this offends AppKit). Usually
|
| - // this reference will exist on an event delivered to the runloop.
|
| - base::scoped_nsobject<NSWindow> window([widget->GetNativeWindow() retain]);
|
| - [window close];
|
| -}
|
| -
|
| -// static
|
| void WidgetTest::SimulateNativeActivate(Widget* widget) {
|
| NSNotificationCenter* center = [NSNotificationCenter defaultCenter];
|
| if (g_simulated_active_window_) {
|
|
|