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

Unified Diff: net/cookies/cookie_monster.cc

Issue 18032002: Wait for store flush in CookieMonster::Delete*Task (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/cookie_monster.cc
diff --git a/net/cookies/cookie_monster.cc b/net/cookies/cookie_monster.cc
index a17d5e7968c89e5b89c431994aeeb0e570c2bec3..b0cd6ee9378f80acd39ecacfeb3b01a20c4dd46f 100644
--- a/net/cookies/cookie_monster.cc
+++ b/net/cookies/cookie_monster.cc
@@ -591,8 +591,7 @@ void CookieMonster::DeleteAllCreatedBetweenTask::Run() {
int num_deleted = this->cookie_monster()->
DeleteAllCreatedBetween(delete_begin_, delete_end_);
if (!callback_.is_null()) {
- this->InvokeCallback(base::Bind(&CookieMonster::DeleteCallback::Run,
- base::Unretained(&callback_), num_deleted));
Randy Smith (Not in Mondays) 2013/06/27 14:30:20 Erik: Why was the base::Unretained() here? It giv
erikwright (departed) 2013/07/17 16:53:32 This was written prior to the ability to re-bind c
+ this->cookie_monster()->FlushStore(base::Bind(callback_, num_deleted));
erikwright (departed) 2013/07/17 16:53:32 Instead of binding (callback_, num_deleted) direct
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698