Index: chrome/browser/profiles/profile_impl.cc |
=================================================================== |
--- chrome/browser/profiles/profile_impl.cc (revision 145957) |
+++ chrome/browser/profiles/profile_impl.cc (working copy) |
@@ -513,11 +513,6 @@ |
ChromePluginServiceFilter::GetInstance()->UnregisterResourceContext( |
io_data_.GetResourceContextNoInit()); |
- if (io_data_.HasMainRequestContext() && |
- default_request_context_ == GetRequestContext()) { |
- default_request_context_ = NULL; |
- } |
- |
// Destroy OTR profile and its profile services first. |
if (off_the_record_profile_.get()) { |
ProfileDestroyer::DestroyOffTheRecordProfileNow( |
@@ -703,15 +698,7 @@ |
} |
net::URLRequestContextGetter* ProfileImpl::GetRequestContext() { |
- net::URLRequestContextGetter* request_context = |
- io_data_.GetMainRequestContextGetter(); |
- // The first request context is always a normal (non-OTR) request context. |
- // Even when Chromium is started in OTR mode, a normal profile is always |
- // created first. |
- if (!default_request_context_) |
- default_request_context_ = request_context; |
- |
- return request_context; |
+ return io_data_.GetMainRequestContextGetter(); |
} |
net::URLRequestContextGetter* ProfileImpl::GetRequestContextForRenderProcess( |