Index: chrome_frame/test/infobar_unittests.cc |
diff --git a/chrome_frame/test/infobar_unittests.cc b/chrome_frame/test/infobar_unittests.cc |
index 1707d6012fbe513cb5c7b9e8893e017211480612..39ccc52813f0b22f3789d04f7d89caea49b96843 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,14 @@ 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( |
csilv
2011/11/18 01:24:17
should be 'PostTask'
James Hawkins
2011/11/18 01:30:15
Done.
|
FROM_HERE, |
- NewRunnableMethod(manager, &InfobarManager::Hide, TOP_INFOBAR), |
- 0); |
+ base::Bind(&InfobarManager::Hide,base::Unretained(manager), TOP_INFOBAR)); |
csilv
2011/11/18 01:24:17
nit: space after comma
James Hawkins
2011/11/18 01:30:15
Done.
|
} |
}; // namespace |