| Index: chrome/browser/renderer_host/resource_dispatcher_host.cc
|
| ===================================================================
|
| --- chrome/browser/renderer_host/resource_dispatcher_host.cc (revision 29872)
|
| +++ chrome/browser/renderer_host/resource_dispatcher_host.cc (working copy)
|
| @@ -402,8 +402,12 @@
|
| ChromeURLRequestContext* context = static_cast<ChromeURLRequestContext*>(
|
| receiver_->GetRequestContext(request_id, request_data));
|
| if (!context) {
|
| - context = static_cast<ChromeURLRequestContext*>(
|
| - Profile::GetDefaultRequestContext());
|
| + URLRequestContextGetter* context_getter =
|
| + Profile::GetDefaultRequestContext();
|
| + if (context_getter) {
|
| + context = static_cast<ChromeURLRequestContext*>(
|
| + context_getter->GetURLRequestContext());
|
| + }
|
| }
|
|
|
| if (is_shutdown_ ||
|
|
|