diff options
Diffstat (limited to 'chrome_frame/test/infobar_unittests.cc')
-rw-r--r-- | chrome_frame/test/infobar_unittests.cc | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/chrome_frame/test/infobar_unittests.cc b/chrome_frame/test/infobar_unittests.cc index 1707d60..6704e29 100644 --- a/chrome_frame/test/infobar_unittests.cc +++ b/chrome_frame/test/infobar_unittests.cc @@ -8,6 +8,8 @@ #include <atlmisc.h> #include <atlwin.h> +#include "base/bind.h" +#include "base/bind_helpers.h" #include "base/string_number_conversions.h" #include "testing/gtest/include/gtest/gtest.h" #include "testing/gmock/include/gmock/gmock.h" @@ -18,9 +20,6 @@ #include "chrome_frame/infobars/internal/subclassing_window_with_delegate.h" #include "chrome_frame/test/chrome_frame_test_utils.h" -DISABLE_RUNNABLE_METHOD_REFCOUNT(InfobarContent::Frame); -DISABLE_RUNNABLE_METHOD_REFCOUNT(InfobarManager); - namespace { RECT kInitialParentWindowRect = {20, 20, 300, 300}; @@ -404,17 +403,13 @@ ACTION_P(ResetFlag, flag) { } ACTION_P2(AsynchronousCloseOnFrame, loop, frame) { - loop->PostDelayedTask( - FROM_HERE, - NewRunnableMethod(*frame, &InfobarContent::Frame::CloseInfobar), - 0); + loop->PostTask(FROM_HERE, base::Bind(&InfobarContent::Frame::CloseInfobar, + base::Unretained(*frame))); } ACTION_P2(AsynchronousHideOnManager, loop, manager) { - loop->PostDelayedTask( - FROM_HERE, - NewRunnableMethod(manager, &InfobarManager::Hide, TOP_INFOBAR), - 0); + loop->PostTask(FROM_HERE, base::Bind(&InfobarManager::Hide, + base::Unretained(manager), TOP_INFOBAR)); } }; // namespace |