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)); |
} |
} |