Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5252)

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 10657009: Removing last usage of default request context. Fixing up login_utils to not need it by allowing ac… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698