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

Issue 10447117: Unwire the clear on exit preference from the storage systems. (Closed)

Created:
8 years, 6 months ago by jochen (gone - plz use gerrit)
Modified:
8 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, jam, jochen+watch-content_chromium.org, Nirnimesh, erikwright (departed), wtc, joi+watch-content_chromium.org, anantha, darin-cc_chromium.org, dyu1, rkn, dennis_jeffrey
Visibility:
Public.

Description

Unwire the clear on exit preference from the storage systems. The "session only" rules should cover the functionality now UI changes and migration code will follow BUG=129349 TEST=added unit tests for the chrome/browser/net/sqlite* classes Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=140502

Patch Set 1 #

Total comments: 20

Patch Set 2 : updates #

Patch Set 3 : fix test #

Total comments: 3

Patch Set 4 : updates #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -601 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/net/chrome_url_request_context.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 3 chunks +0 lines, -23 lines 0 comments Download
M chrome/browser/net/sqlite_persistent_cookie_store.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/sqlite_persistent_cookie_store.cc View 1 6 chunks +10 lines, -15 lines 1 comment Download
M chrome/browser/net/sqlite_persistent_cookie_store_unittest.cc View 1 3 chunks +19 lines, -24 lines 0 comments Download
M chrome/browser/net/sqlite_server_bound_cert_store.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/sqlite_server_bound_cert_store.cc View 1 6 chunks +10 lines, -15 lines 0 comments Download
M chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc View 1 2 4 chunks +21 lines, -43 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 7 chunks +5 lines, -20 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 6 chunks +1 line, -13 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 3 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 3 chunks +1 line, -5 lines 0 comments Download
M chrome/test/functional/cookies.py View 1 chunk +0 lines, -25 lines 0 comments Download
M content/browser/appcache/chrome_appcache_service_unittest.cc View 1 3 chunks +1 line, -41 lines 0 comments Download
M content/browser/browser_context.cc View 1 5 chunks +10 lines, -23 lines 0 comments Download
M content/browser/dom_storage/dom_storage_context_impl.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/dom_storage/dom_storage_context_impl.cc View 1 1 chunk +2 lines, -11 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_context_impl.h View 1 3 chunks +5 lines, -10 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_context_impl.cc View 1 2 3 5 chunks +9 lines, -14 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_unittest.cc View 1 4 chunks +3 lines, -53 lines 0 comments Download
M content/public/browser/browser_context.h View 1 chunk +0 lines, -3 lines 0 comments Download
M net/base/default_server_bound_cert_store.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M net/base/default_server_bound_cert_store.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M net/base/default_server_bound_cert_store_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/server_bound_cert_store.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M net/cookies/cookie_monster.h View 1 3 chunks +4 lines, -9 lines 0 comments Download
M net/cookies/cookie_monster.cc View 1 2 chunks +2 lines, -7 lines 0 comments Download
M net/cookies/cookie_monster_store_test.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M net/cookies/cookie_monster_store_test.cc View 1 2 chunks +2 lines, -5 lines 0 comments Download
M net/cookies/cookie_monster_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/appcache/appcache_service.h View 1 2 chunks +4 lines, -12 lines 0 comments Download
M webkit/appcache/appcache_service.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/appcache/appcache_storage_impl.cc View 1 4 chunks +8 lines, -12 lines 0 comments Download
M webkit/database/database_tracker.h View 1 3 chunks +6 lines, -10 lines 0 comments Download
M webkit/database/database_tracker.cc View 1 2 3 5 chunks +10 lines, -31 lines 0 comments Download
M webkit/database/database_tracker_unittest.cc View 1 4 chunks +4 lines, -111 lines 0 comments Download
M webkit/dom_storage/dom_storage_context.h View 1 3 chunks +4 lines, -8 lines 0 comments Download
M webkit/dom_storage/dom_storage_context.cc View 1 2 3 3 chunks +7 lines, -10 lines 0 comments Download
M webkit/dom_storage/dom_storage_context_unittest.cc View 1 2 chunks +2 lines, -22 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
jochen (gone - plz use gerrit)
Please review: Matt, ServerBoundCert stuff Will, chrome/browser/profiles/ and net/ approval Michael, webkit/, */dom_storage, and in_process_webkit ...
8 years, 6 months ago (2012-05-31 14:45:18 UTC) #1
marja
I didn't yet finish reading through it all, but... https://chromiumcodereview.appspot.com/10447117/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://chromiumcodereview.appspot.com/10447117/diff/1/chrome/browser/chrome_content_browser_client.cc#newcode920 chrome/browser/chrome_content_browser_client.cc:920: ...
8 years, 6 months ago (2012-05-31 15:30:32 UTC) #2
jochen (gone - plz use gerrit)
https://chromiumcodereview.appspot.com/10447117/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://chromiumcodereview.appspot.com/10447117/diff/1/chrome/browser/chrome_content_browser_client.cc#newcode920 chrome/browser/chrome_content_browser_client.cc:920: return setting != CONTENT_SETTING_SESSION_ONLY; On 2012/05/31 15:30:32, marja wrote: ...
8 years, 6 months ago (2012-05-31 15:54:40 UTC) #3
Bernhard Bauer
If the UI isn't updated yet, does that mean there will be an interval where ...
8 years, 6 months ago (2012-05-31 16:08:16 UTC) #4
jochen (gone - plz use gerrit)
On 2012/05/31 16:08:16, Bernhard Bauer wrote: > If the UI isn't updated yet, does that ...
8 years, 6 months ago (2012-05-31 16:13:40 UTC) #5
Bernhard Bauer
On 2012/05/31 16:13:40, jochen wrote: > On 2012/05/31 16:08:16, Bernhard Bauer wrote: > > If ...
8 years, 6 months ago (2012-05-31 16:33:52 UTC) #6
erikwright (departed)
https://chromiumcodereview.appspot.com/10447117/diff/1/chrome/browser/net/sqlite_persistent_cookie_store.h File chrome/browser/net/sqlite_persistent_cookie_store.h (right): https://chromiumcodereview.appspot.com/10447117/diff/1/chrome/browser/net/sqlite_persistent_cookie_store.h#newcode48 chrome/browser/net/sqlite_persistent_cookie_store.h:48: virtual void SetKeepSessionCookies() OVERRIDE; On 2012/05/31 15:54:41, jochen wrote: ...
8 years, 6 months ago (2012-05-31 18:02:02 UTC) #7
willchan no longer on Chromium
chrome/browser/profile/ LGTM and net/ and chrome/browser/net non-cookie/cert specific portions LGTM too.
8 years, 6 months ago (2012-05-31 18:51:12 UTC) #8
mattm
https://chromiumcodereview.appspot.com/10447117/diff/1/chrome/browser/net/sqlite_server_bound_cert_store.cc File chrome/browser/net/sqlite_server_bound_cert_store.cc (right): https://chromiumcodereview.appspot.com/10447117/diff/1/chrome/browser/net/sqlite_server_bound_cert_store.cc#newcode117 chrome/browser/net/sqlite_server_bound_cert_store.cc:117: bool save_session_state_; This variable name (and function that sets ...
8 years, 6 months ago (2012-05-31 21:57:11 UTC) #9
michaeln
lgtm w a couple of nits https://chromiumcodereview.appspot.com/10447117/diff/1/content/browser/browser_context.cc File content/browser/browser_context.cc (left): https://chromiumcodereview.appspot.com/10447117/diff/1/content/browser/browser_context.cc#oldcode217 content/browser/browser_context.cc:217: base::Bind(&appcache::AppCacheService::set_clear_local_state_on_exit, Can this ...
8 years, 6 months ago (2012-06-01 02:06:16 UTC) #10
jochen (gone - plz use gerrit)
all comments addressed http://codereview.chromium.org/10447117/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): http://codereview.chromium.org/10447117/diff/1/chrome/browser/chrome_content_browser_client.cc#newcode918 chrome/browser/chrome_content_browser_client.cc:918: ContentSetting setting = cookie_settings->GetDefaultCookieSetting(NULL); On 2012/05/31 ...
8 years, 6 months ago (2012-06-01 12:15:18 UTC) #11
marja
lgtm with nits: http://codereview.chromium.org/10447117/diff/8005/content/browser/in_process_webkit/indexed_db_context_impl.cc File content/browser/in_process_webkit/indexed_db_context_impl.cc (right): http://codereview.chromium.org/10447117/diff/8005/content/browser/in_process_webkit/indexed_db_context_impl.cc#newcode76 content/browser/in_process_webkit/indexed_db_context_impl.cc:76: if (!special_storage_policy->IsStorageSessionOnly(*iter)) Same here (see below). ...
8 years, 6 months ago (2012-06-01 12:45:28 UTC) #12
jochen (gone - plz use gerrit)
all done
8 years, 6 months ago (2012-06-01 12:58:08 UTC) #13
erikwright (departed)
*cookie* LGTM. http://codereview.chromium.org/10447117/diff/17001/chrome/browser/net/sqlite_persistent_cookie_store.cc File chrome/browser/net/sqlite_persistent_cookie_store.cc (right): http://codereview.chromium.org/10447117/diff/17001/chrome/browser/net/sqlite_persistent_cookie_store.cc#newcode1020 chrome/browser/net/sqlite_persistent_cookie_store.cc:1020: void SQLitePersistentCookieStore::SetForceKeepSessionState() { I gather that, by ...
8 years, 6 months ago (2012-06-01 15:17:17 UTC) #14
jochen (gone - plz use gerrit)
Right. In practice, we set this flag right before shutdown On Jun 1, 2012 5:17 ...
8 years, 6 months ago (2012-06-01 15:57:20 UTC) #15
mattm
server_bound_cert stuff LGTM
8 years, 6 months ago (2012-06-01 21:15:01 UTC) #16
jochen (gone - plz use gerrit)
+avi for content/ approval
8 years, 6 months ago (2012-06-02 19:56:28 UTC) #17
Avi (use Gerrit)
8 years, 6 months ago (2012-06-04 14:49:11 UTC) #18
content rubber stamp lgtm

Powered by Google App Engine
This is Rietveld 408576698