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

Unified Diff: net/cookies/cookie_monster.cc

Issue 2259823002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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/cert_net/cert_net_fetcher_impl_unittest.cc ('k') | net/cookies/cookie_monster_store_test.cc » ('j') | 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 76ca75f1d34a924c44dc3d2397b8272db89216b1..78cfda7b8a96c81a9788f21dfe66cace1940f3e6 100644
--- a/net/cookies/cookie_monster.cc
+++ b/net/cookies/cookie_monster.cc
@@ -1807,8 +1807,8 @@ bool CookieMonster::SetCanonicalCookies(const CookieList& list) {
for (const auto& cookie : list) {
// Use an empty GURL. This method does not support setting secure cookies.
- if (!SetCanonicalCookie(base::WrapUnique(new CanonicalCookie(cookie)),
- GURL(), options)) {
+ if (!SetCanonicalCookie(base::MakeUnique<CanonicalCookie>(cookie), GURL(),
+ options)) {
return false;
}
}
« no previous file with comments | « net/cert_net/cert_net_fetcher_impl_unittest.cc ('k') | net/cookies/cookie_monster_store_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698