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

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

Issue 2861063003: Remove dangerous CanonicalCookie::Create method. (Closed)
Patch Set: Use creation_time for last_access_time as per Elly's suggestion. 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 762f38f867d3dd4168b8230597728ba0e0f759fa..d147fef9f1ef2f48cf299ea34d35809482098909 100644
--- a/content/browser/browsing_data/browsing_data_remover_impl_unittest.cc
+++ b/content/browser/browsing_data/browsing_data_remover_impl_unittest.cc
@@ -118,8 +118,8 @@ struct StoragePartitionRemovalData {
net::CanonicalCookie CreateCookieWithHost(const GURL& source) {
std::unique_ptr<net::CanonicalCookie> cookie(net::CanonicalCookie::Create(
- source, "A", "1", std::string(), "/", base::Time::Now(),
- base::Time::Now(), false, false, net::CookieSameSite::DEFAULT_MODE,
+ "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