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

Unified Diff: net/cookies/cookie_monster_store_test.cc

Issue 876973003: Implement the "first-party-only" cookie flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tiny bug. Created 5 years, 10 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: net/cookies/cookie_monster_store_test.cc
diff --git a/net/cookies/cookie_monster_store_test.cc b/net/cookies/cookie_monster_store_test.cc
index dc371ed92e80ec64763299276ad1efa67eed5e3a..30fcc3328872ecb0ae9580662e082879348dada7 100644
--- a/net/cookies/cookie_monster_store_test.cc
+++ b/net/cookies/cookie_monster_store_test.cc
@@ -121,7 +121,8 @@ CanonicalCookie BuildCanonicalCookie(const std::string& key,
return CanonicalCookie(GURL(), pc.Name(), pc.Value(), key, cookie_path,
creation_time, cookie_expires, creation_time,
- pc.IsSecure(), pc.IsHttpOnly(), pc.Priority());
+ pc.IsSecure(), pc.IsHttpOnly(), pc.IsFirstParty(),
+ pc.Priority());
}
void AddCookieToList(const std::string& key,
@@ -214,7 +215,8 @@ CookieMonster* CreateMonsterFromStoreForGC(int num_cookies,
CanonicalCookie cc(GURL(), "a", "1", base::StringPrintf("h%05d.izzle", i),
"/path", creation_time, expiration_time,
- last_access_time, false, false, COOKIE_PRIORITY_DEFAULT);
+ last_access_time, false, false, false,
+ COOKIE_PRIORITY_DEFAULT);
store->AddCookie(cc);
}

Powered by Google App Engine
This is Rietveld 408576698