| Index: net/disk_cache/sparse_control.cc
|
| ===================================================================
|
| --- net/disk_cache/sparse_control.cc (revision 126788)
|
| +++ net/disk_cache/sparse_control.cc (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -442,6 +442,9 @@
|
| if (!ChildPresent())
|
| return ContinueWithoutChild(key);
|
|
|
| + if (!entry_->backend_)
|
| + return false;
|
| +
|
| child_ = entry_->backend_->OpenEntryImpl(key);
|
| if (!child_)
|
| return ContinueWithoutChild(key);
|
| @@ -514,6 +517,9 @@
|
| if (kGetRangeOperation == operation_)
|
| return true;
|
|
|
| + if (!entry_->backend_)
|
| + return false;
|
| +
|
| child_ = entry_->backend_->CreateEntryImpl(key);
|
| if (!child_) {
|
| child_ = NULL;
|
|
|