Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: net/cookies/cookie_monster_unittest.cc

Issue 2283373002: Remove unneeded scoped_refptr<>::get() on method binding (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/test_completion_callback_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/cookie_monster_unittest.cc
diff --git a/net/cookies/cookie_monster_unittest.cc b/net/cookies/cookie_monster_unittest.cc
index 722f4e0012788f53836080b92f4a80e960f817ea..bba8fa401bab9409081d80d76f25ade0afcd0020 100644
--- a/net/cookies/cookie_monster_unittest.cc
+++ b/net/cookies/cookie_monster_unittest.cc
@@ -2533,7 +2533,7 @@ TEST_F(CookieMonsterTest, FlushStore) {
ASSERT_EQ(0, counter->callback_count());
// Before initialization, FlushStore() should just run the callback.
- cm->FlushStore(base::Bind(&CallbackCounter::Callback, counter.get()));
+ cm->FlushStore(base::Bind(&CallbackCounter::Callback, counter));
base::RunLoop().RunUntilIdle();
ASSERT_EQ(0, store->flush_count());
@@ -2548,7 +2548,7 @@ TEST_F(CookieMonsterTest, FlushStore) {
// After initialization, FlushStore() should delegate to the store.
GetAllCookies(cm.get()); // Force init.
- cm->FlushStore(base::Bind(&CallbackCounter::Callback, counter.get()));
+ cm->FlushStore(base::Bind(&CallbackCounter::Callback, counter));
base::RunLoop().RunUntilIdle();
ASSERT_EQ(1, store->flush_count());
@@ -2569,7 +2569,7 @@ TEST_F(CookieMonsterTest, FlushStore) {
ASSERT_EQ(2, counter->callback_count());
- cm->FlushStore(base::Bind(&CallbackCounter::Callback, counter.get()));
+ cm->FlushStore(base::Bind(&CallbackCounter::Callback, counter));
base::RunLoop().RunUntilIdle();
ASSERT_EQ(3, counter->callback_count());
« no previous file with comments | « net/base/test_completion_callback_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698