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

Issue 14208017: Add cookie priority to the cookie database. (Closed)

Created:
7 years, 8 months ago by Roger McFarlane (Chromium)
Modified:
7 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add cookie priority to the cookie database. This CL adds cookie priorities to the cookie persistance layer. Cookie priorities allow developers to influence the order in which cookies are evicted in order to meet cookie domain limits. This CL: - adds a priority field to the cookies table - updates the persistence layer to save/load the cookie to the new field - increments the current database version from 5 to 6 - adds a migration step to upgrade version 5 databases to version 6 R= erikwright@chromium.org, huangs@chromium.org BUG=232693 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195954

Patch Set 1 : Initial CL #

Total comments: 2

Patch Set 2 : Fix a typo. #

Total comments: 6

Patch Set 3 : Address Sam's comments re: patchset 2 #

Total comments: 2

Patch Set 4 : Add unittests and rebase onto Sam's change. #

Total comments: 13

Patch Set 5 : Rename priority enum values and rebase onto master. #

Total comments: 6

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -49 lines) Patch
M content/browser/net/sqlite_persistent_cookie_store.cc View 1 2 3 4 5 9 chunks +106 lines, -47 lines 0 comments Download
M content/browser/net/sqlite_persistent_cookie_store_unittest.cc View 1 2 3 4 3 chunks +78 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Roger McFarlane (Chromium)
Hi Erik and Sam, Here's a first stab at persisting the cookie priority field. It ...
7 years, 8 months ago (2013-04-16 17:53:12 UTC) #1
Roger McFarlane (Chromium)
A separate CL updates the histogram XML file.
7 years, 8 months ago (2013-04-16 17:53:40 UTC) #2
huangs
https://codereview.chromium.org/14208017/diff/2001/content/browser/net/sqlite_persistent_cookie_store.cc File content/browser/net/sqlite_persistent_cookie_store.cc (right): https://codereview.chromium.org/14208017/diff/2001/content/browser/net/sqlite_persistent_cookie_store.cc#newcode666 content/browser/net/sqlite_persistent_cookie_store.cc:666: "secure, httponly, last_access_utc, has_expires, persistent, prioirity " Typo "prioirity"?
7 years, 8 months ago (2013-04-16 17:56:28 UTC) #3
Roger McFarlane (Chromium)
https://codereview.chromium.org/14208017/diff/2001/content/browser/net/sqlite_persistent_cookie_store.cc File content/browser/net/sqlite_persistent_cookie_store.cc (right): https://codereview.chromium.org/14208017/diff/2001/content/browser/net/sqlite_persistent_cookie_store.cc#newcode666 content/browser/net/sqlite_persistent_cookie_store.cc:666: "secure, httponly, last_access_utc, has_expires, persistent, prioirity " On 2013/04/16 ...
7 years, 8 months ago (2013-04-16 18:04:28 UTC) #4
huangs
Please update sqlite_server_bound_cert_store_unittest.cc as well. Thanks! https://codereview.chromium.org/14208017/diff/8001/content/browser/net/sqlite_persistent_cookie_store.cc File content/browser/net/sqlite_persistent_cookie_store.cc (right): https://codereview.chromium.org/14208017/diff/8001/content/browser/net/sqlite_persistent_cookie_store.cc#newcode319 content/browser/net/sqlite_persistent_cookie_store.cc:319: // order in ...
7 years, 8 months ago (2013-04-16 18:25:55 UTC) #5
Roger McFarlane (Chromium)
sqlite_server_bound_cert_store_unittest.cc? Mayhaps you meant sqlite_persistent_cookie_store_unittest.cc? If so, then yes, I'll update this file as well ...
7 years, 8 months ago (2013-04-16 19:17:25 UTC) #6
huangs
Ah yes, I meant sqlite_persistent_cookie_store_unittest.cc. Sorry about that.
7 years, 8 months ago (2013-04-16 19:37:16 UTC) #7
erikwright (departed)
LG. I would rather see the integer stored in the DB declared locally in this ...
7 years, 8 months ago (2013-04-16 20:41:03 UTC) #8
Roger McFarlane (Chromium)
PTAL? I've rebased onto Sam's proposed change, so this should more closely resemble the final ...
7 years, 8 months ago (2013-04-18 18:54:28 UTC) #9
Roger McFarlane (Chromium)
On 2013/04/16 20:41:03, erikwright wrote: > LG. I would rather see the integer stored in ...
7 years, 8 months ago (2013-04-18 18:57:36 UTC) #10
erikwright (departed)
LGTM. https://codereview.chromium.org/14208017/diff/23002/content/browser/net/sqlite_persistent_cookie_store.cc File content/browser/net/sqlite_persistent_cookie_store.cc (right): https://codereview.chromium.org/14208017/diff/23002/content/browser/net/sqlite_persistent_cookie_store.cc#newcode340 content/browser/net/sqlite_persistent_cookie_store.cc:340: // This anonymous enum defines the valid integer ...
7 years, 8 months ago (2013-04-18 19:34:05 UTC) #11
Roger McFarlane (Chromium)
Another look? https://codereview.chromium.org/14208017/diff/23002/content/browser/net/sqlite_persistent_cookie_store.cc File content/browser/net/sqlite_persistent_cookie_store.cc (right): https://codereview.chromium.org/14208017/diff/23002/content/browser/net/sqlite_persistent_cookie_store.cc#newcode340 content/browser/net/sqlite_persistent_cookie_store.cc:340: // This anonymous enum defines the valid ...
7 years, 8 months ago (2013-04-19 20:53:03 UTC) #12
Roger McFarlane (Chromium)
Now rebased onto the TOT as Sam's change has landed.
7 years, 8 months ago (2013-04-19 20:53:37 UTC) #13
huangs
LGTM with nits. https://codereview.chromium.org/14208017/diff/28001/content/browser/net/sqlite_persistent_cookie_store_unittest.cc File content/browser/net/sqlite_persistent_cookie_store_unittest.cc (right): https://codereview.chromium.org/14208017/diff/28001/content/browser/net/sqlite_persistent_cookie_store_unittest.cc#newcode474 content/browser/net/sqlite_persistent_cookie_store_unittest.cc:474: ASSERT_TRUE(it != cookie_map.end()); Nit: ASSERT_NE(cookie_map.end(), cookie_map.find(kLowName)); ...
7 years, 8 months ago (2013-04-19 21:15:28 UTC) #14
Roger McFarlane (Chromium)
Thanks. Committing. https://codereview.chromium.org/14208017/diff/28001/content/browser/net/sqlite_persistent_cookie_store_unittest.cc File content/browser/net/sqlite_persistent_cookie_store_unittest.cc (right): https://codereview.chromium.org/14208017/diff/28001/content/browser/net/sqlite_persistent_cookie_store_unittest.cc#newcode474 content/browser/net/sqlite_persistent_cookie_store_unittest.cc:474: ASSERT_TRUE(it != cookie_map.end()); On 2013/04/19 21:15:28, huangs1 ...
7 years, 8 months ago (2013-04-23 15:17:18 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerm@chromium.org/14208017/63001
7 years, 8 months ago (2013-04-23 15:17:23 UTC) #16
commit-bot: I haz the power
7 years, 8 months ago (2013-04-24 00:13:08 UTC) #17
Message was sent while issue was closed.
Change committed as 195954

Powered by Google App Engine
This is Rietveld 408576698