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

Unified Diff: chrome/browser/net/chrome_url_request_context.cc

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android webview init fix merged in. Created 7 years, 4 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/net/chrome_url_request_context.h ('k') | chrome/browser/net/cookie_store_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_url_request_context.cc
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc
index f33504061ab4a40f760a9cd8ea47f6ab9a3c3f3a..460353a94ded2f1fc180cb7719b8cd6dd236eb16 100644
--- a/chrome/browser/net/chrome_url_request_context.cc
+++ b/chrome/browser/net/chrome_url_request_context.cc
@@ -57,20 +57,6 @@ class FactoryForMain : public ChromeURLRequestContextFactory {
content::ProtocolHandlerMap protocol_handlers_;
};
-// Factory that creates the ChromeURLRequestContext for extensions.
-class FactoryForExtensions : public ChromeURLRequestContextFactory {
- public:
- explicit FactoryForExtensions(const ProfileIOData* profile_io_data)
- : profile_io_data_(profile_io_data) {}
-
- virtual ChromeURLRequestContext* Create() OVERRIDE {
- return profile_io_data_->GetExtensionsRequestContext();
- }
-
- private:
- const ProfileIOData* const profile_io_data_;
-};
-
// Factory that creates the ChromeURLRequestContext for a given isolated app.
class FactoryForIsolatedApp : public ChromeURLRequestContextFactory {
public:
@@ -213,15 +199,6 @@ ChromeURLRequestContextGetter::CreateOriginalForMedia(
// static
ChromeURLRequestContextGetter*
-ChromeURLRequestContextGetter::CreateOriginalForExtensions(
- Profile* profile, const ProfileIOData* profile_io_data) {
- DCHECK(!profile->IsOffTheRecord());
- return new ChromeURLRequestContextGetter(
- new FactoryForExtensions(profile_io_data));
-}
-
-// static
-ChromeURLRequestContextGetter*
ChromeURLRequestContextGetter::CreateOriginalForIsolatedApp(
Profile* profile,
const ProfileIOData* profile_io_data,
@@ -265,15 +242,6 @@ ChromeURLRequestContextGetter::CreateOffTheRecord(
// static
ChromeURLRequestContextGetter*
-ChromeURLRequestContextGetter::CreateOffTheRecordForExtensions(
- Profile* profile, const ProfileIOData* profile_io_data) {
- DCHECK(profile->IsOffTheRecord());
- return new ChromeURLRequestContextGetter(
- new FactoryForExtensions(profile_io_data));
-}
-
-// static
-ChromeURLRequestContextGetter*
ChromeURLRequestContextGetter::CreateOffTheRecordForIsolatedApp(
Profile* profile,
const ProfileIOData* profile_io_data,
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.h ('k') | chrome/browser/net/cookie_store_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698