summaryrefslogtreecommitdiffstats
path: root/ui/views/focus
diff options
context:
space:
mode:
authordcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-09 00:42:32 +0000
committerdcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-09 00:42:32 +0000
commitb7e1492380bd57394cda52931ffd81afa112fd33 (patch)
tree5a9e1a778005d1036a9c83fadd0968f7cebcec57 /ui/views/focus
parent72d27ce8b6bdeef96d08a0de1c347e24e91f52f4 (diff)
downloadchromium_src-b7e1492380bd57394cda52931ffd81afa112fd33.zip
chromium_src-b7e1492380bd57394cda52931ffd81afa112fd33.tar.gz
chromium_src-b7e1492380bd57394cda52931ffd81afa112fd33.tar.bz2
Remove MessageLoop::QuitTask() from ui/.
BUG=none TEST=none Review URL: http://codereview.chromium.org/8889023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113714 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/focus')
-rw-r--r--ui/views/focus/focus_manager_unittest_win.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/views/focus/focus_manager_unittest_win.cc b/ui/views/focus/focus_manager_unittest_win.cc
index 6cc4a6b..0cf05e8 100644
--- a/ui/views/focus/focus_manager_unittest_win.cc
+++ b/ui/views/focus/focus_manager_unittest_win.cc
@@ -221,7 +221,7 @@ TEST_F(FocusManagerTest, IgnoreKeyupForAccelerators) {
PostKeyDown(ui::VKEY_9);
PostKeyUp(ui::VKEY_9);
AcceleratorHandler accelerator_handler;
- MessageLoopForUI::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ MessageLoopForUI::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
MessageLoopForUI::current()->RunWithDispatcher(&accelerator_handler);
// Make sure we get a key-up and key-down.
ASSERT_EQ(1U, mtv->keys_pressed().size());
@@ -240,7 +240,7 @@ TEST_F(FocusManagerTest, IgnoreKeyupForAccelerators) {
PostKeyUp(ui::VKEY_9);
PostKeyUp(ui::VKEY_7);
PostKeyUp(ui::VKEY_8);
- MessageLoopForUI::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ MessageLoopForUI::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
MessageLoopForUI::current()->RunWithDispatcher(&accelerator_handler);
// Make sure we get a key-up and key-down.
ASSERT_EQ(5U, mtv->keys_pressed().size());
@@ -259,7 +259,7 @@ TEST_F(FocusManagerTest, IgnoreKeyupForAccelerators) {
// Now send an accelerator key sequence.
PostKeyDown(ui::VKEY_0);
PostKeyUp(ui::VKEY_0);
- MessageLoopForUI::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ MessageLoopForUI::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
MessageLoopForUI::current()->RunWithDispatcher(&accelerator_handler);
EXPECT_TRUE(mtv->keys_pressed().empty());
EXPECT_TRUE(mtv->keys_released().empty());
@@ -274,7 +274,7 @@ TEST_F(FocusManagerTest, IgnoreKeyupForAccelerators) {
PostKeyDown(ui::VKEY_0);
PostKeyUp(ui::VKEY_1);
PostKeyUp(ui::VKEY_0);
- MessageLoopForUI::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
+ MessageLoopForUI::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
MessageLoopForUI::current()->RunWithDispatcher(&accelerator_handler);
EXPECT_TRUE(mtv->keys_pressed().empty());
EXPECT_TRUE(mtv->keys_released().empty());