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

Unified Diff: net/cookies/canonical_cookie.cc

Issue 233353003: Only commit cookie changes in prerenders after a prerender is shown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Add browser tests, fix a bug in what was changed yesterday. Created 6 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: net/cookies/canonical_cookie.cc
===================================================================
--- net/cookies/canonical_cookie.cc (revision 265252)
+++ net/cookies/canonical_cookie.cc (working copy)
@@ -394,4 +394,20 @@
static_cast<int64>(creation_date_.ToTimeT()));
}
+CanonicalCookie* CanonicalCookie::Duplicate() {
Charlie Reis 2014/05/07 17:21:32 This looks like it will quickly get stale if more
tburkard 2014/05/07 18:34:27 Done.
+ CanonicalCookie* cc = new CanonicalCookie();
+ cc->source_ = source_;
+ cc->name_ = name_;
+ cc->value_ = value_;
+ cc->domain_ = domain_;
+ cc->path_ = path_;
+ cc->creation_date_ = creation_date_;
+ cc->expiry_date_ = expiry_date_;
+ cc->last_access_date_ = last_access_date_;
+ cc->secure_ = secure_;
+ cc->httponly_ = httponly_;
+ cc->priority_ = priority_;
+ return cc;
+}
+
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698