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

Issue 110883017: Add CookieStoreConfig to unify API for in-memory and persistent CookieStore Creation. (Closed)

Created:
6 years, 11 months ago by awong
Modified:
6 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Add CookieStoreConfig to unify API for in-memory and persistent CookieStore Creation. This is part of relanding https://chromiumcodereview.appspot.com/12546016 Unifying the Cookiecreation interface makes the cookie store creation more consistent. Having a config struct also enables the next refactor where we move the cookie store creation enitrely into the content layer (the embedder will only responsible for providing the correct configuration). This also changes the lifetime of CookieCryptoDelegate so one object can be shared amongst multiple cookie stores. Allows for easier lifetime semantics in the CookieStoreConfig and also is slightly less wasteful of memory. TBR=jam BUG=159193 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244371

Patch Set 1 #

Patch Set 2 : merged ToT #

Patch Set 3 : Rebase moar #

Patch Set 4 : merged. #

Patch Set 5 : merged ToT #

Patch Set 6 : remove superfluous content:: #

Patch Set 7 : correctly fix a using #

Patch Set 8 : Fix session cookie merge error. #

Patch Set 9 : test leaking the context #

Patch Set 10 : fun fun #

Patch Set 11 : leak I say #

Patch Set 12 : Try to get past compiler checks. #

Patch Set 13 : Use a LazyInstance to solve lifetime issue. #

Patch Set 14 : merge ToT again. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+449 lines, -261 lines) Patch
M android_webview/native/cookie_manager.cc View 1 1 chunk +7 lines, -9 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 2 3 6 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/net/connection_tester.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/net/connection_tester_unittest.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
A chrome/browser/net/cookie_store_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/net/cookie_store_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +145 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 6 3 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 14 chunks +44 lines, -77 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +2 lines, -58 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/net/sqlite_persistent_cookie_store.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/net/sqlite_persistent_cookie_store.cc View 1 2 3 8 chunks +73 lines, -55 lines 0 comments Download
M content/browser/net/sqlite_persistent_cookie_store_perftest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/net/sqlite_persistent_cookie_store_unittest.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -5 lines 0 comments Download
M content/public/browser/cookie_store_factory.h View 1 2 3 2 chunks +74 lines, -23 lines 0 comments Download
M content/shell/browser/shell_url_request_context_getter.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
awong
FYI, I'm changing the lifetime of the CookieCryptoDelegate to be the same as the normal ...
6 years, 11 months ago (2014-01-03 02:47:09 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/110883017/860001
6 years, 11 months ago (2014-01-06 19:38:53 UTC) #2
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=210221
6 years, 11 months ago (2014-01-06 20:08:54 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/110883017/970004
6 years, 11 months ago (2014-01-06 21:06:21 UTC) #4
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=210278
6 years, 11 months ago (2014-01-06 21:43:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/110883017/1240001
6 years, 11 months ago (2014-01-07 20:37:11 UTC) #6
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=210795
6 years, 11 months ago (2014-01-07 22:35:16 UTC) #7
awong
Hi Brian, I'm changing the lifetime of CookieCryptoDelegate. The reason for this is that the ...
6 years, 11 months ago (2014-01-10 03:57:39 UTC) #8
erikwright (departed)
Lifetime changes for crypto delegate LGTM.
6 years, 11 months ago (2014-01-10 21:23:15 UTC) #9
awong
On 2014/01/10 21:23:15, erikwright wrote: > Lifetime changes for crypto delegate LGTM. Thanks Erik! All ...
6 years, 11 months ago (2014-01-10 21:25:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/110883017/1750001
6 years, 11 months ago (2014-01-10 21:25:57 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/110883017/1750001
6 years, 11 months ago (2014-01-10 23:00:07 UTC) #12
commit-bot: I haz the power
6 years, 11 months ago (2014-01-11 22:39:42 UTC) #13
Message was sent while issue was closed.
Change committed as 244371

Powered by Google App Engine
This is Rietveld 408576698