Index: ui/views/widget/native_widget_mac_unittest.mm |
diff --git a/ui/views/widget/native_widget_mac_unittest.mm b/ui/views/widget/native_widget_mac_unittest.mm |
index b5814720f66572dd6c07565e0f2e5da76bebf1d8..37d71bbf8c57132cbcfb991675a785589381c2cb 100644 |
--- a/ui/views/widget/native_widget_mac_unittest.mm |
+++ b/ui/views/widget/native_widget_mac_unittest.mm |
@@ -6,14 +6,12 @@ |
#import <Cocoa/Cocoa.h> |
-#include "base/location.h" |
#import "base/mac/foundation_util.h" |
-#import "base/mac/scoped_nsobject.h" |
#import "base/mac/scoped_nsautorelease_pool.h" |
+#import "base/mac/scoped_nsobject.h" |
#import "base/mac/scoped_objc_class_swizzler.h" |
#include "base/macros.h" |
#include "base/run_loop.h" |
-#include "base/single_thread_task_runner.h" |
#include "base/strings/sys_string_conversions.h" |
#include "base/strings/utf_string_conversions.h" |
#include "base/test/test_timeouts.h" |
@@ -442,10 +440,10 @@ TEST_F(NativeWidgetMacTest, DISABLED_OrderFrontAfterMiniaturize) { |
// Wait and check that child is really visible. |
// TODO(kirr): remove the fixed delay. |
- base::MessageLoop::current()->PostDelayedTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
FROM_HERE, base::MessageLoop::QuitWhenIdleClosure(), |
base::TimeDelta::FromSeconds(2)); |
- base::MessageLoop::current()->Run(); |
+ base::RunLoop().Run(); |
EXPECT_FALSE(widget->IsMinimized()); |
EXPECT_TRUE(widget->IsVisible()); |