diff options
-rw-r--r-- | chrome/common/appcache/appcache_dispatcher_host.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/chrome/common/appcache/appcache_dispatcher_host.cc b/chrome/common/appcache/appcache_dispatcher_host.cc index f6c316b..bfbdd89 100644 --- a/chrome/common/appcache/appcache_dispatcher_host.cc +++ b/chrome/common/appcache/appcache_dispatcher_host.cc @@ -21,16 +21,15 @@ void AppCacheDispatcherHost::Initialize(IPC::Message::Sender* sender, int process_id, base::ProcessHandle process_handle) { DCHECK(sender); DCHECK(process_handle && !process_handle_); + DCHECK(request_context_getter_.get()); + process_handle_ = process_handle; // Get the AppCacheService (it can only be accessed from IO thread). - if (request_context_getter_.get()) { - URLRequestContext* context = - request_context_getter_->GetURLRequestContext(); - appcache_service_ = - static_cast<ChromeURLRequestContext*>(context)->appcache_service(); - request_context_getter_ = NULL; - } + URLRequestContext* context = request_context_getter_->GetURLRequestContext(); + appcache_service_ = + static_cast<ChromeURLRequestContext*>(context)->appcache_service(); + request_context_getter_ = NULL; frontend_proxy_.set_sender(sender); if (appcache_service_.get()) { |