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

Unified Diff: net/cookies/cookie_monster_unittest.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/cookies/cookie_monster_store_test.cc ('k') | net/disk_cache/simple/simple_backend_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/cookie_monster_unittest.cc
diff --git a/net/cookies/cookie_monster_unittest.cc b/net/cookies/cookie_monster_unittest.cc
index 6aa9a33613a172e1c4d3475611d0081896fd896a..b8ea404d07a3cd152266da6a86283cb627b0250f 100644
--- a/net/cookies/cookie_monster_unittest.cc
+++ b/net/cookies/cookie_monster_unittest.cc
@@ -98,7 +98,7 @@ bool CookieValuePredicate(const std::string& true_value,
struct CookieMonsterTestTraits {
static std::unique_ptr<CookieStore> Create() {
- return base::WrapUnique(new CookieMonster(nullptr, nullptr));
+ return base::MakeUnique<CookieMonster>(nullptr, nullptr);
}
static const bool supports_http_only = true;
@@ -112,7 +112,7 @@ struct CookieMonsterTestTraits {
struct CookieMonsterEnforcingStrictSecure {
static std::unique_ptr<CookieStore> Create() {
- return base::WrapUnique(new CookieMonster(nullptr, nullptr));
+ return base::MakeUnique<CookieMonster>(nullptr, nullptr);
}
static const bool supports_http_only = true;
« no previous file with comments | « net/cookies/cookie_monster_store_test.cc ('k') | net/disk_cache/simple/simple_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698