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

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

Issue 10735042: Revert 145969 - Removing last usage of default request context. Fixing up login_utils to not need i… (Closed) Base URL: svn://svn.chromium.org/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
« no previous file with comments | « chrome/browser/profiles/profile.h ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile.cc
===================================================================
--- chrome/browser/profiles/profile.cc (revision 145994)
+++ chrome/browser/profiles/profile.cc (working copy)
@@ -19,6 +19,10 @@
#include "chrome/common/chrome_switches.h"
#endif
+// A pointer to the request context for the default profile. See comments on
+// Profile::GetDefaultRequestContext.
+net::URLRequestContextGetter* Profile::default_request_context_;
+
Profile::Profile()
: restored_last_session_(false),
accessibility_pause_level_(0) {
@@ -90,6 +94,10 @@
#endif
}
+// static
+net::URLRequestContextGetter* Profile::GetDefaultRequestContext() {
+ return default_request_context_;
+}
std::string Profile::GetDebugName() {
std::string name = GetPath().BaseName().MaybeAsASCII();
« no previous file with comments | « chrome/browser/profiles/profile.h ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698