diff options
author | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-21 20:45:06 +0000 |
---|---|---|
committer | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-21 20:45:06 +0000 |
commit | 92442d759f8615634a9a6b56642d61d7ae206626 (patch) | |
tree | 30d30930b27e4481f1d8c109c1025f92ae0e4752 /chrome/browser/password_manager | |
parent | 53c0b1ba80612d92849dc02e2e7a1aa97df0e6a1 (diff) | |
download | chromium_src-92442d759f8615634a9a6b56642d61d7ae206626.zip chromium_src-92442d759f8615634a9a6b56642d61d7ae206626.tar.gz chromium_src-92442d759f8615634a9a6b56642d61d7ae206626.tar.bz2 |
Use DISABLE_RUNNABLE_METHOD_REFCOUNT macro in several places I've previously specialized RunnableMethodTraits.
Review URL: http://codereview.chromium.org/7980014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/password_manager')
4 files changed, 4 insertions, 20 deletions
diff --git a/chrome/browser/password_manager/native_backend_gnome_x.cc b/chrome/browser/password_manager/native_backend_gnome_x.cc index 0bdfeb0..eeb06196 100644 --- a/chrome/browser/password_manager/native_backend_gnome_x.cc +++ b/chrome/browser/password_manager/native_backend_gnome_x.cc @@ -415,11 +415,7 @@ void GKRMethod::OnOperationGetList(GnomeKeyringResult result, GList* list, // GKRMethod isn't reference counted, but it always outlasts runnable // methods against it because the caller waits for those methods to run. -template<> -struct RunnableMethodTraits<GKRMethod> { - void RetainCallee(GKRMethod*) {} - void ReleaseCallee(GKRMethod*) {} -}; +DISABLE_RUNNABLE_METHOD_REFCOUNT(GKRMethod); NativeBackendGnome::NativeBackendGnome(LocalProfileId id, PrefService* prefs) : profile_id_(id), prefs_(prefs) { diff --git a/chrome/browser/password_manager/native_backend_gnome_x_unittest.cc b/chrome/browser/password_manager/native_backend_gnome_x_unittest.cc index 2aa8bb1..6123519 100644 --- a/chrome/browser/password_manager/native_backend_gnome_x_unittest.cc +++ b/chrome/browser/password_manager/native_backend_gnome_x_unittest.cc @@ -275,11 +275,7 @@ class MockGnomeKeyringLoader : public GnomeKeyringLoader { // NativeBackendGnome isn't reference counted, but in these unit tests that // won't be a problem as it always outlives the threads we post tasks to. -template<> -struct RunnableMethodTraits<NativeBackendGnome> { - void RetainCallee(NativeBackendGnome*) {} - void ReleaseCallee(NativeBackendGnome*) {} -}; +DISABLE_RUNNABLE_METHOD_REFCOUNT(NativeBackendGnome); class NativeBackendGnomeTest : public testing::Test { protected: diff --git a/chrome/browser/password_manager/native_backend_kwallet_x_unittest.cc b/chrome/browser/password_manager/native_backend_kwallet_x_unittest.cc index f4b37f9..4011897 100644 --- a/chrome/browser/password_manager/native_backend_kwallet_x_unittest.cc +++ b/chrome/browser/password_manager/native_backend_kwallet_x_unittest.cc @@ -490,11 +490,7 @@ TEST_F(NativeBackendKWalletTest, BasicStartup) { // NativeBackendKWallet isn't reference counted, but in these unit tests that // won't be a problem as it always outlives the threads we post tasks to. -template<> -struct RunnableMethodTraits<NativeBackendKWalletStub> { - void RetainCallee(NativeBackendKWalletStub*) {} - void ReleaseCallee(NativeBackendKWalletStub*) {} -}; +DISABLE_RUNNABLE_METHOD_REFCOUNT(NativeBackendKWalletStub); TEST_F(NativeBackendKWalletTest, BasicAddLogin) { // Pretend that the migration has already taken place. diff --git a/chrome/browser/password_manager/password_store_x_unittest.cc b/chrome/browser/password_manager/password_store_x_unittest.cc index 8fe5622..1f6f069 100644 --- a/chrome/browser/password_manager/password_store_x_unittest.cc +++ b/chrome/browser/password_manager/password_store_x_unittest.cc @@ -270,11 +270,7 @@ void InitExpectedForms(bool autofillable, size_t count, VectorOfForms* forms) { // LoginDatabase isn't reference counted, but in these unit tests that won't be // a problem as it always outlives the threads we post tasks to. -template<> -struct RunnableMethodTraits<LoginDatabase> { - void RetainCallee(LoginDatabase*) {} - void ReleaseCallee(LoginDatabase*) {} -}; +DISABLE_RUNNABLE_METHOD_REFCOUNT(LoginDatabase); enum BackendType { NO_BACKEND, |