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

Issue 378015: Clear disk cache when the cache is not initialized (Closed)

Created:
11 years, 1 month ago by Alpha Left Google
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Clear disk cache when the cache is not initialized BUG=24765 TEST=unit test, clear browsing data and the cache, media cache will be cleared even if a media object was not loaded. Since the disk cache backend in HttpCache is lazily initialized, clearing the cache before it receives the first transaction would have no effect. So initialize the disk cache explicitly when we clear the cache. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31361

Patch Set 1 #

Total comments: 8

Patch Set 2 : nits fixed #

Patch Set 3 : simple test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -28 lines) Patch
M chrome/browser/browsing_data_remover.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M net/http/http_cache.h View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M net/http/http_cache.cc View 1 2 6 chunks +20 lines, -18 lines 0 comments Download
M net/http/http_cache_unittest.cc View 1 2 3 chunks +11 lines, -1 line 0 comments Download
M net/url_request/view_cache_helper.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Alpha Left Google
11 years, 1 month ago (2009-11-06 20:08:24 UTC) #1
rvargas (doing something else)
Thanks for doing this. http://codereview.chromium.org/378015/diff/1/3 File net/http/http_cache.cc (right): http://codereview.chromium.org/378015/diff/1/3#newcode1730 Line 1730: // was an in-memory ...
11 years, 1 month ago (2009-11-06 21:12:51 UTC) #2
Alpha Left Google
http://codereview.chromium.org/378015/diff/1/3 File net/http/http_cache.cc (right): http://codereview.chromium.org/378015/diff/1/3#newcode1730 Line 1730: // was an in-memory cache. On 2009/11/06 21:12:51, ...
11 years, 1 month ago (2009-11-06 22:27:05 UTC) #3
rvargas (doing something else)
http://codereview.chromium.org/378015/diff/1/5 File net/http/http_cache_unittest.cc (right): http://codereview.chromium.org/378015/diff/1/5#newcode803 Line 803: net::HttpCache cache(network_session, path, 0); On 2009/11/06 22:27:05, Alpha ...
11 years, 1 month ago (2009-11-07 00:17:18 UTC) #4
Alpha Left Google
I also removed in_memory_ from HttpCache because it seems redundant. http://codereview.chromium.org/378015/diff/1/5 File net/http/http_cache_unittest.cc (right): http://codereview.chromium.org/378015/diff/1/5#newcode803 ...
11 years, 1 month ago (2009-11-07 01:10:25 UTC) #5
rvargas (doing something else)
11 years, 1 month ago (2009-11-07 01:38:12 UTC) #6
LGTM. Thanks again for doing this.

Powered by Google App Engine
This is Rietveld 408576698