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

Unified Diff: net/cookies/cookie_store_test_helpers.h

Issue 1701063002: CookieStore: Remove reference counting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@threadsafe
Patch Set: merge Created 4 years, 9 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/cookies/cookie_store.cc ('k') | net/cookies/cookie_store_test_helpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/cookie_store_test_helpers.h
diff --git a/net/cookies/cookie_store_test_helpers.h b/net/cookies/cookie_store_test_helpers.h
index ad02ab62f91c9b0eeadda0a3fec9c16f913526e8..e2f566bb187624bf044aefe55ecb3ad5c0c2b9a9 100644
--- a/net/cookies/cookie_store_test_helpers.h
+++ b/net/cookies/cookie_store_test_helpers.h
@@ -19,6 +19,8 @@ class DelayedCookieMonster : public CookieStore {
public:
DelayedCookieMonster();
+ ~DelayedCookieMonster() override;
+
// Call the asynchronous CookieMonster function, expect it to immediately
// invoke the internal callback.
// Post a delayed task to invoke the original callback with the results.
@@ -111,9 +113,8 @@ class DelayedCookieMonster : public CookieStore {
const CookieMonster::GetCookieListCallback& callback);
friend class base::RefCountedThreadSafe<DelayedCookieMonster>;
- ~DelayedCookieMonster() override;
- scoped_refptr<CookieMonster> cookie_monster_;
+ scoped_ptr<CookieMonster> cookie_monster_;
bool did_run_;
bool result_;
« no previous file with comments | « net/cookies/cookie_store.cc ('k') | net/cookies/cookie_store_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698