ndesktop wrote:Delete files History and History-journal from cache_path ?
ndesktop wrote:Delete files History and History-journal from cache_path ?
ndesktop wrote:Programmatically, I think HistoryService::ExpireHistoryBetween is what is needed for a programmatic clear. But I don't remember HistoryService being intercepted/overriden in CEF.
I don't know how the history service can and should be operated, but one may start from ChromeBrowserContext::AddVisitedURLs implementation as a first example: get the profile with AsProfile(), history service with HistoryServiceFactory::GetForProfile(profile, ServiceAccessType::IMPLICIT_ACCESS) or perhaps ServiceAccessType::EXPLICIT_ACCESS, and call ExpireHistoryBetween with min and max time values (there are examples in history service unit test).
Users browsing this forum: No registered users and 33 guests