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

Issue 523076: Clear the host cache when closing the last incognito window.... (Closed)

Created:
10 years, 11 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), Paweł Hajdan Jr.
Visibility:
Public.

Description

Clear the host cache when closing the last incognito window. This avoids retaining navigation history relating to the incognito window. I piggy-back off of the dns prefetcher's OffTheRecordObserver to do this. In the future I hope to have a separate host resolver for off the record mode, so this won't be necessary. BUG=24629 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35923

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : Fix a long line #

Patch Set 4 : Fix typo #

Total comments: 1

Patch Set 5 : Address jar's comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -41 lines) Patch
M chrome/browser/browser_main.cc View 1 chunk +3 lines, -2 lines 1 comment Download
M chrome/browser/net/dns_global.h View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/net/dns_global.cc View 2 3 4 8 chunks +30 lines, -22 lines 0 comments Download
M chrome/browser/net/dns_master_unittest.cc View 10 chunks +20 lines, -11 lines 0 comments Download
M net/base/host_cache.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M net/base/host_cache_unittest.cc View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
eroman
10 years, 11 months ago (2010-01-06 00:15:26 UTC) #1
eroman
ping
10 years, 11 months ago (2010-01-08 23:55:52 UTC) #2
jar (doing other things)
Please consider renaming the function as mentioned below, and augmenting the comment in browser_main.cc http://codereview.chromium.org/523076/diff/12/15 ...
10 years, 11 months ago (2010-01-09 00:18:55 UTC) #3
eroman
Thanks for the review. Done: Renamed DnsPrefetcherInit --> DnsGlobalInit
10 years, 11 months ago (2010-01-09 01:50:24 UTC) #4
jar (doing other things)
10 years, 11 months ago (2010-01-09 02:16:29 UTC) #5
One nit below.

LGTM with that fixed.

Thanks!

http://codereview.chromium.org/523076/diff/7001/7005
File chrome/browser/browser_main.cc (right):

http://codereview.chromium.org/523076/diff/7001/7005#newcode766
chrome/browser/browser_main.cc:766: // to clear the host cache when closing
incognito mode
nit: period at end of sentence.

Powered by Google App Engine
This is Rietveld 408576698