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

Issue 5359005: Moved deleting the indexed db context to the WebKitContext destructor. (Closed)

Created:
10 years ago by pastarmovj
Modified:
9 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Moved deleting the indexed db context to the IndexedDBContext destructor. This gives us the safety that we delete the files only when they are certainly not accessed by the webkit context anymore. BUG=56249 TEST=IndexedDBBrowserTest.ClearLocalState Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67708

Patch Set 1 #

Patch Set 2 : Whitespace fixed. #

Patch Set 3 : More whitespace fixes :(. #

Patch Set 4 : Includes cleanup. #

Total comments: 15

Patch Set 5 : Moved the clearing logic to the IndexedDBContext::Destructor. #

Total comments: 3

Patch Set 6 : Cleaned up static modifer from the ClearLocalState method. #

Total comments: 12

Patch Set 7 : Extracted ClearLocalSettings method outside the class. #

Total comments: 4

Patch Set 8 : Style fixes and cleanup. #

Total comments: 8

Patch Set 9 : Style fixes. #

Patch Set 10 : Changed webkit context to explicit initialization instad of lazy one. #

Patch Set 11 : Moved Pref monitoring code to the profile. #

Patch Set 12 : Cleaned up unneded includes. #

Total comments: 1

Patch Set 13 : Niptucked. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -45 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/in_process_webkit/indexed_db_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/in_process_webkit/indexed_db_context.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -6 lines 0 comments Download
M chrome/browser/in_process_webkit/indexed_db_context.cc View 1 2 3 4 5 6 3 chunks +32 lines, -24 lines 0 comments Download
M chrome/browser/in_process_webkit/webkit_context.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/in_process_webkit/webkit_context.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/in_process_webkit/webkit_context_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/profile.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profile_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +10 lines, -1 line 0 comments Download
M chrome/test/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
pastarmovj
Please review.
10 years ago (2010-11-27 18:49:58 UTC) #1
jochen (gone - plz use gerrit)
http://codereview.chromium.org/5359005/diff/6001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): http://codereview.chromium.org/5359005/diff/6001/chrome/browser/browser_process_impl.cc#newcode33 chrome/browser/browser_process_impl.cc:33: #include "chrome/browser/in_process_webkit/indexed_db_context.h" please remove http://codereview.chromium.org/5359005/diff/6001/chrome/browser/in_process_webkit/webkit_context.cc File chrome/browser/in_process_webkit/webkit_context.cc (right): http://codereview.chromium.org/5359005/diff/6001/chrome/browser/in_process_webkit/webkit_context.cc#newcode43 ...
10 years ago (2010-11-27 19:02:26 UTC) #2
pastarmovj
Fixed the CL description to reflect the changes. Please check both my comments on your ...
10 years ago (2010-11-27 20:45:15 UTC) #3
pastarmovj
Please review. 10x
10 years ago (2010-11-29 09:36:59 UTC) #4
jochen (gone - plz use gerrit)
http://codereview.chromium.org/5359005/diff/20001/chrome/browser/in_process_webkit/indexed_db_browsertest.cc File chrome/browser/in_process_webkit/indexed_db_browsertest.cc (right): http://codereview.chromium.org/5359005/diff/20001/chrome/browser/in_process_webkit/indexed_db_browsertest.cc#newcode111 chrome/browser/in_process_webkit/indexed_db_browsertest.cc:111: context.ClearLocalState(indexeddb_dir, "https"); you should delete the webkit context and ...
10 years ago (2010-11-29 10:45:24 UTC) #5
pastarmovj
http://codereview.chromium.org/5359005/diff/20001/chrome/browser/in_process_webkit/indexed_db_browsertest.cc File chrome/browser/in_process_webkit/indexed_db_browsertest.cc (right): http://codereview.chromium.org/5359005/diff/20001/chrome/browser/in_process_webkit/indexed_db_browsertest.cc#newcode111 chrome/browser/in_process_webkit/indexed_db_browsertest.cc:111: context.ClearLocalState(indexeddb_dir, "https"); On 2010/11/29 10:45:24, jochen wrote: > you ...
10 years ago (2010-11-29 12:50:37 UTC) #6
jochen (gone - plz use gerrit)
http://codereview.chromium.org/5359005/diff/27001/chrome/browser/in_process_webkit/indexed_db_browsertest.cc File chrome/browser/in_process_webkit/indexed_db_browsertest.cc (right): http://codereview.chromium.org/5359005/diff/27001/chrome/browser/in_process_webkit/indexed_db_browsertest.cc#newcode111 chrome/browser/in_process_webkit/indexed_db_browsertest.cc:111: // context which should trigger the clean up. can ...
10 years ago (2010-11-29 13:01:09 UTC) #7
pastarmovj
http://codereview.chromium.org/5359005/diff/27001/chrome/browser/in_process_webkit/indexed_db_browsertest.cc File chrome/browser/in_process_webkit/indexed_db_browsertest.cc (right): http://codereview.chromium.org/5359005/diff/27001/chrome/browser/in_process_webkit/indexed_db_browsertest.cc#newcode111 chrome/browser/in_process_webkit/indexed_db_browsertest.cc:111: // context which should trigger the clean up. On ...
10 years ago (2010-11-29 13:10:44 UTC) #8
jochen (gone - plz use gerrit)
http://codereview.chromium.org/5359005/diff/35001/chrome/browser/in_process_webkit/indexed_db_browsertest.cc File chrome/browser/in_process_webkit/indexed_db_browsertest.cc (right): http://codereview.chromium.org/5359005/diff/35001/chrome/browser/in_process_webkit/indexed_db_browsertest.cc#newcode116 chrome/browser/in_process_webkit/indexed_db_browsertest.cc:116: webkit_context->Release(); release http://codereview.chromium.org/5359005/diff/35001/chrome/browser/in_process_webkit/webkit_context.cc File chrome/browser/in_process_webkit/webkit_context.cc (right): http://codereview.chromium.org/5359005/diff/35001/chrome/browser/in_process_webkit/webkit_context.cc#newcode24 chrome/browser/in_process_webkit/webkit_context.cc:24: PrefService* ...
10 years ago (2010-11-29 13:29:33 UTC) #9
pastarmovj
http://codereview.chromium.org/5359005/diff/35001/chrome/browser/in_process_webkit/indexed_db_browsertest.cc File chrome/browser/in_process_webkit/indexed_db_browsertest.cc (right): http://codereview.chromium.org/5359005/diff/35001/chrome/browser/in_process_webkit/indexed_db_browsertest.cc#newcode116 chrome/browser/in_process_webkit/indexed_db_browsertest.cc:116: webkit_context->Release(); On 2010/11/29 13:29:33, jochen wrote: > release Done. ...
10 years ago (2010-11-29 13:45:12 UTC) #10
jochen (gone - plz use gerrit)
LGTM pending trybot happiness
10 years ago (2010-11-29 13:46:47 UTC) #11
pastarmovj
Please review. Passes all try servers.
10 years ago (2010-11-30 13:45:24 UTC) #12
jochen (gone - plz use gerrit)
10 years ago (2010-11-30 13:46:25 UTC) #13
LGTM with a small nit

http://codereview.chromium.org/5359005/diff/49001/chrome/browser/in_process_w...
File chrome/browser/in_process_webkit/indexed_db_browsertest.cc (right):

http://codereview.chromium.org/5359005/diff/49001/chrome/browser/in_process_w...
chrome/browser/in_process_webkit/indexed_db_browsertest.cc:108: // create the
scope which will ensure we run the destructor of the webkit
Create

Powered by Google App Engine
This is Rietveld 408576698