diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 02:17:23 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 02:17:23 +0000 |
commit | c56428f24b67efa6a2eff77a709b7b6489403617 (patch) | |
tree | ab1966b7a60fe6d97062480d501e16fcbc00837a /chrome/browser/history | |
parent | 6c23230f2e2b345a7fafb4caf814e07b8228cae7 (diff) | |
download | chromium_src-c56428f24b67efa6a2eff77a709b7b6489403617.zip chromium_src-c56428f24b67efa6a2eff77a709b7b6489403617.tar.gz chromium_src-c56428f24b67efa6a2eff77a709b7b6489403617.tar.bz2 |
Add DISABLE_RUNNABLE_METHOD_REFCOUNT to make disabling refcounts in RunnableMethods easier.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2830006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49887 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history')
-rw-r--r-- | chrome/browser/history/history_unittest.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/chrome/browser/history/history_unittest.cc b/chrome/browser/history/history_unittest.cc index 1886cdc..be0cd0a 100644 --- a/chrome/browser/history/history_unittest.cc +++ b/chrome/browser/history/history_unittest.cc @@ -58,11 +58,7 @@ class HistoryTest; // Specialize RunnableMethodTraits for HistoryTest so we can create callbacks. // None of these callbacks can outlast the test, so there is not need to retain // the HistoryTest object. -template <> -struct RunnableMethodTraits<history::HistoryTest> { - void RetainCallee(history::HistoryTest* obj) { } - void ReleaseCallee(history::HistoryTest* obj) { } -}; +DISABLE_RUNNABLE_METHOD_REFCOUNT(history::HistoryTest); namespace history { |