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

Unified Diff: chrome/browser/extensions/api/cookies/cookies_helpers.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: chrome/browser/extensions/api/cookies/cookies_helpers.cc
diff --git a/chrome/browser/extensions/api/cookies/cookies_helpers.cc b/chrome/browser/extensions/api/cookies/cookies_helpers.cc
index bcb3066e597cc74ae6154993c94d1e3013e9116f..42ca67b2839980dc32c67cbd3958588926a6d94f 100644
--- a/chrome/browser/extensions/api/cookies/cookies_helpers.cc
+++ b/chrome/browser/extensions/api/cookies/cookies_helpers.cc
@@ -121,13 +121,13 @@ CookieStore CreateCookieStore(Profile* profile,
void GetCookieListFromStore(
net::CookieStore* cookie_store,
const GURL& url,
- const net::CookieMonster::GetCookieListCallback& callback) {
+ net::CookieMonster::GetCookieListCallback callback) {
DCHECK(cookie_store);
if (!url.is_empty()) {
DCHECK(url.is_valid());
- cookie_store->GetAllCookiesForURLAsync(url, callback);
+ cookie_store->GetAllCookiesForURLAsync(url, std::move(callback));
} else {
- cookie_store->GetAllCookiesAsync(callback);
+ cookie_store->GetAllCookiesAsync(std::move(callback));
}
}

Powered by Google App Engine
This is Rietveld 408576698