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

Unified Diff: content/browser/browsing_data/browsing_data_remover_impl_unittest.cc

Issue 2874843002: Shifted creation of unvalidated CanonicalCookies over to a constructor. (Closed)
Patch Set: Merged to top of dependent CL. Created 3 years, 7 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: content/browser/browsing_data/browsing_data_remover_impl_unittest.cc
diff --git a/content/browser/browsing_data/browsing_data_remover_impl_unittest.cc b/content/browser/browsing_data/browsing_data_remover_impl_unittest.cc
index d147fef9f1ef2f48cf299ea34d35809482098909..e0330ab9b38d70e1b315f82537c1c0ef00b36f1c 100644
--- a/content/browser/browsing_data/browsing_data_remover_impl_unittest.cc
+++ b/content/browser/browsing_data/browsing_data_remover_impl_unittest.cc
@@ -117,10 +117,11 @@ struct StoragePartitionRemovalData {
};
net::CanonicalCookie CreateCookieWithHost(const GURL& source) {
- std::unique_ptr<net::CanonicalCookie> cookie(net::CanonicalCookie::Create(
- "A", "1", source.host(), "/", base::Time::Now(), base::Time::Now(),
- base::Time(), false, false, net::CookieSameSite::DEFAULT_MODE,
- net::COOKIE_PRIORITY_MEDIUM));
+ std::unique_ptr<net::CanonicalCookie> cookie(
+ base::MakeUnique<net::CanonicalCookie>(
+ "A", "1", source.host(), "/", base::Time::Now(), base::Time::Now(),
+ base::Time(), false, false, net::CookieSameSite::DEFAULT_MODE,
+ net::COOKIE_PRIORITY_MEDIUM));
EXPECT_TRUE(cookie);
return *cookie;
}

Powered by Google App Engine
This is Rietveld 408576698