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

Issue 7619010: Session-only local storage cleared on exit. (Closed)

Created:
9 years, 4 months ago by marja
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Erik does not do reviews, jam, mihaip+watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, Paweł Hajdan Jr., kinuko+watch
Visibility:
Public.

Description

Session-only local storage cleared on exit. BUG=47049 TEST=DOMStorageTest.SessionOnly Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97469

Patch Set 1 #

Total comments: 4

Patch Set 2 : Keeping up to date with trunk. #

Patch Set 3 : Code review fixes. #

Patch Set 4 : Tests. #

Total comments: 4

Patch Set 5 : Code review comments. #

Total comments: 2

Patch Set 6 : Fixing patch set 5 (missing file). #

Patch Set 7 : Test fix (illegal dependency). #

Total comments: 2

Patch Set 8 : Code review comments (tiny). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -10 lines) Patch
M chrome/browser/extensions/extension_special_storage_policy.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_special_storage_policy.cc View 1 2 2 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_special_storage_policy_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/mock_extension_special_storage_policy.h View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/mock_extension_special_storage_policy.cc View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/in_process_webkit/dom_storage_context.h View 1 2 3 4 5 6 3 chunks +9 lines, -0 lines 0 comments Download
M content/browser/in_process_webkit/dom_storage_context.cc View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
A content/browser/in_process_webkit/dom_storage_unittest.cc View 1 2 3 4 5 6 1 chunk +67 lines, -0 lines 0 comments Download
M content/browser/in_process_webkit/webkit_context.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/in_process_webkit/webkit_context.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M webkit/quota/mock_special_storage_policy.h View 1 2 3 4 4 chunks +8 lines, -0 lines 0 comments Download
M webkit/quota/mock_special_storage_policy.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/quota/special_storage_policy.h View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jochen (gone - plz use gerrit)
LGTM with nits http://codereview.chromium.org/7619010/diff/1/chrome/browser/extensions/extension_special_storage_policy.cc File chrome/browser/extensions/extension_special_storage_policy.cc (right): http://codereview.chromium.org/7619010/diff/1/chrome/browser/extensions/extension_special_storage_policy.cc#newcode11 chrome/browser/extensions/extension_special_storage_policy.cc:11: #include "chrome/browser/content_settings/host_content_settings_map.h" alphabetical ordering http://codereview.chromium.org/7619010/diff/1/chrome/browser/extensions/extension_special_storage_policy.cc#newcode32 chrome/browser/extensions/extension_special_storage_policy.cc:32: ...
9 years, 4 months ago (2011-08-17 11:29:06 UTC) #1
marja
Thanks for comments. Michael, could you have a look whether the approach of this CL ...
9 years, 4 months ago (2011-08-17 11:51:16 UTC) #2
michaeln
LGTM2 http://codereview.chromium.org/7619010/diff/8001/content/browser/in_process_webkit/dom_storage_context.cc File content/browser/in_process_webkit/dom_storage_context.cc (right): http://codereview.chromium.org/7619010/diff/8001/content/browser/in_process_webkit/dom_storage_context.cc#newcode201 content/browser/in_process_webkit/dom_storage_context.cc:201: void DOMStorageContext::DeleteSessionOnlyData() { maybe DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT)); http://codereview.chromium.org/7619010/diff/8001/webkit/quota/mock_special_storage_policy.h File webkit/quota/mock_special_storage_policy.h ...
9 years, 4 months ago (2011-08-17 19:16:40 UTC) #3
jochen (gone - plz use gerrit)
some more comments. I don't think this needs to be fixed in this CL, but ...
9 years, 4 months ago (2011-08-18 11:20:26 UTC) #4
marja
Did the small changes suggested by michaeln. http://codereview.chromium.org/7619010/diff/8001/content/browser/in_process_webkit/dom_storage_context.cc File content/browser/in_process_webkit/dom_storage_context.cc (right): http://codereview.chromium.org/7619010/diff/8001/content/browser/in_process_webkit/dom_storage_context.cc#newcode201 content/browser/in_process_webkit/dom_storage_context.cc:201: void DOMStorageContext::DeleteSessionOnlyData() ...
9 years, 4 months ago (2011-08-18 11:22:14 UTC) #5
marja
http://codereview.chromium.org/7619010/diff/4004/chrome/browser/extensions/extension_special_storage_policy.cc File chrome/browser/extensions/extension_special_storage_policy.cc (right): http://codereview.chromium.org/7619010/diff/4004/chrome/browser/extensions/extension_special_storage_policy.cc#newcode36 chrome/browser/extensions/extension_special_storage_policy.cc:36: GetCookieContentSetting(origin, origin, true); On 2011/08/18 11:20:26, jochen wrote: > ...
9 years, 4 months ago (2011-08-18 11:59:01 UTC) #6
marja
Fyi, I had an illegal #include in the tests; content/browser/in_process_webkit/dom_storage_unittest.cc included chrome/browser/extensions/mock_extension_special_storage_policy.h. The latest patch ...
9 years, 4 months ago (2011-08-18 18:36:36 UTC) #7
michaeln
On 2011/08/18 18:36:36, marja wrote: > Fyi, I had an illegal #include in the tests; ...
9 years, 4 months ago (2011-08-18 21:34:35 UTC) #8
commit-bot: I haz the power
Presubmit check for 7619010-7034 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 4 months ago (2011-08-19 06:54:08 UTC) #9
marja
Oops, missing the OWNERS again. Miranda, could you review the parts affecting the profiles (chrome/browser/profiles/profile_impl.cc ...
9 years, 4 months ago (2011-08-19 06:59:52 UTC) #10
Miranda Callahan
LGTM with nit. http://codereview.chromium.org/7619010/diff/7034/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): http://codereview.chromium.org/7619010/diff/7034/chrome/browser/profiles/profile_impl.cc#newcode833 chrome/browser/profiles/profile_impl.cc:833: if (!extension_special_storage_policy_.get()) nit: add { } ...
9 years, 4 months ago (2011-08-19 11:11:10 UTC) #11
marja
Thanks for the comment. http://codereview.chromium.org/7619010/diff/7034/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): http://codereview.chromium.org/7619010/diff/7034/chrome/browser/profiles/profile_impl.cc#newcode833 chrome/browser/profiles/profile_impl.cc:833: if (!extension_special_storage_policy_.get()) On 2011/08/19 11:11:10, ...
9 years, 4 months ago (2011-08-19 11:23:45 UTC) #12
commit-bot: I haz the power
9 years, 4 months ago (2011-08-19 17:07:13 UTC) #13
Change committed as 97469

Powered by Google App Engine
This is Rietveld 408576698