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

Unified Diff: net/cookies/cookie_monster_store_test.cc

Issue 2937963003: Shift cookie system callbacks to OnceCallback to impedance match mojo. (Closed)
Patch Set: Finish Merge Created 3 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
Index: net/cookies/cookie_monster_store_test.cc
diff --git a/net/cookies/cookie_monster_store_test.cc b/net/cookies/cookie_monster_store_test.cc
index 36bafc6c6a577fe5fa3dad0b351d8c6f1fc389f8..0f60e4105f5fcfb79a4aca50d083a594f23a812f 100644
--- a/net/cookies/cookie_monster_store_test.cc
+++ b/net/cookies/cookie_monster_store_test.cc
@@ -87,9 +87,10 @@ void MockPersistentCookieStore::DeleteCookie(const CanonicalCookie& cookie) {
commands_.push_back(CookieStoreCommand(CookieStoreCommand::REMOVE, cookie));
}
-void MockPersistentCookieStore::Flush(const base::Closure& callback) {
+void MockPersistentCookieStore::Flush(base::OnceClosure callback) {
if (!callback.is_null())
- base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, callback);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
+ std::move(callback));
}
void MockPersistentCookieStore::SetForceKeepSessionState() {
@@ -195,9 +196,10 @@ void MockSimplePersistentCookieStore::DeleteCookie(
cookies_.erase(it);
}
-void MockSimplePersistentCookieStore::Flush(const base::Closure& callback) {
+void MockSimplePersistentCookieStore::Flush(base::OnceClosure callback) {
if (!callback.is_null())
- base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, callback);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
+ std::move(callback));
}
void MockSimplePersistentCookieStore::SetForceKeepSessionState() {

Powered by Google App Engine
This is Rietveld 408576698