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

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: sync @269781 + 'autlock'->'autolock' from erik's comment that was not included before 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
« no previous file with comments | « net/cookies/canonical_cookie.h ('k') | net/cookies/cookie_monster.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/canonical_cookie.cc
===================================================================
--- net/cookies/canonical_cookie.cc (revision 269781)
+++ net/cookies/canonical_cookie.cc (working copy)
@@ -394,4 +394,20 @@
static_cast<int64>(creation_date_.ToTimeT()));
}
+CanonicalCookie* CanonicalCookie::Duplicate() {
+ 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
« no previous file with comments | « net/cookies/canonical_cookie.h ('k') | net/cookies/cookie_monster.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698