summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-30 20:06:53 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-30 20:06:53 +0000
commit83f2e0564f0d589c0a8d047cc3c47bb828849c0f (patch)
tree3f5176d4b239f7256f7d944bff1305fcbe8d2a3c
parentd50f9eafcd15d6836d0ddec3fe297e11734b6a17 (diff)
downloadchromium_src-83f2e0564f0d589c0a8d047cc3c47bb828849c0f.zip
chromium_src-83f2e0564f0d589c0a8d047cc3c47bb828849c0f.tar.gz
chromium_src-83f2e0564f0d589c0a8d047cc3c47bb828849c0f.tar.bz2
Don't defend against Initialize being called twice, that should not happen.
TEST=none BUG=26754 TBR=mark Review URL: http://codereview.chromium.org/524013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35386 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/common/appcache/appcache_dispatcher_host.cc13
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()) {