mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Persist localStorage data across sessions when a cache path is specified (issue #139).
- Add a localStorage test to cefclient. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@140 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -116,6 +116,11 @@ void CefProcessUIThread::Init() {
|
||||
gfx::InitializeGLBindings(gfx::kGLImplementationDesktopGL);
|
||||
|
||||
URLRequest::RegisterProtocolFactory("blob", &BlobURLRequestJobFactory);
|
||||
|
||||
if(!_Context->cache_path().empty()) {
|
||||
// Create the storage context object.
|
||||
_Context->set_storage_context(new DOMStorageContext());
|
||||
}
|
||||
}
|
||||
|
||||
void CefProcessUIThread::CleanUp() {
|
||||
@ -124,6 +129,9 @@ void CefProcessUIThread::CleanUp() {
|
||||
// purify leak-test results.
|
||||
MessageLoop::current()->RunAllPending();
|
||||
|
||||
// Destroy the storage context object.
|
||||
_Context->set_storage_context(NULL);
|
||||
|
||||
// Tear down the shared StatsTable.
|
||||
base::StatsTable::set_current(NULL);
|
||||
delete statstable_;
|
||||
|
Reference in New Issue
Block a user