mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 66269.
- Fixes a crash with Flash-related JavaScript (issue #115). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@138 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -390,7 +390,6 @@ void BrowserAppCacheSystem::InitOnIOThread(URLRequestContext* request_context) {
|
||||
|
||||
DCHECK(!io_message_loop_);
|
||||
io_message_loop_ = MessageLoop::current();
|
||||
io_message_loop_->AddDestructionObserver(this);
|
||||
|
||||
if (!db_thread_.IsRunning())
|
||||
db_thread_.Start();
|
||||
@ -406,6 +405,19 @@ void BrowserAppCacheSystem::InitOnIOThread(URLRequestContext* request_context) {
|
||||
AppCacheInterceptor::EnsureRegistered();
|
||||
}
|
||||
|
||||
void BrowserAppCacheSystem::CleanupIOThread() {
|
||||
DCHECK(is_io_thread());
|
||||
|
||||
delete backend_impl_;
|
||||
delete service_;
|
||||
backend_impl_ = NULL;
|
||||
service_ = NULL;
|
||||
io_message_loop_ = NULL;
|
||||
|
||||
// Just in case the main thread is waiting on it.
|
||||
backend_proxy_->SignalEvent();
|
||||
}
|
||||
|
||||
WebApplicationCacheHost* BrowserAppCacheSystem::CreateCacheHostForWebKit(
|
||||
WebApplicationCacheHostClient* client) {
|
||||
if (!is_initailized_on_ui_thread())
|
||||
@ -435,16 +447,3 @@ void BrowserAppCacheSystem::GetExtraResponseBits(
|
||||
request, cache_id, manifest_url);
|
||||
}
|
||||
}
|
||||
|
||||
void BrowserAppCacheSystem::WillDestroyCurrentMessageLoop() {
|
||||
DCHECK(is_io_thread());
|
||||
|
||||
delete backend_impl_;
|
||||
delete service_;
|
||||
backend_impl_ = NULL;
|
||||
service_ = NULL;
|
||||
io_message_loop_ = NULL;
|
||||
|
||||
// Just in case the main thread is waiting on it.
|
||||
backend_proxy_->SignalEvent();
|
||||
}
|
||||
|
Reference in New Issue
Block a user