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 0fe660b7e55df7a966931c34b4b8ac440eb15be7..174cbda6476b7dbc15a9e353b44b4921426bde61 100644 |
--- a/chrome/browser/net/chrome_url_request_context.cc |
+++ b/chrome/browser/net/chrome_url_request_context.cc |
@@ -283,32 +283,6 @@ ChromeURLRequestContext* FactoryForOffTheRecord::Create() { |
return context; |
} |
-// Factory that creates the ChromeURLRequestContext for extensions in incognito |
-// mode. |
-class FactoryForOffTheRecordExtensions |
- : public ChromeURLRequestContextFactory { |
- public: |
- explicit FactoryForOffTheRecordExtensions(Profile* profile) |
- : ChromeURLRequestContextFactory(profile) {} |
- |
- virtual ChromeURLRequestContext* Create(); |
-}; |
- |
-ChromeURLRequestContext* FactoryForOffTheRecordExtensions::Create() { |
- ChromeURLRequestContext* context = new ChromeURLRequestContext; |
- ApplyProfileParametersToContext(context); |
- |
- net::CookieMonster* cookie_monster = new net::CookieMonster; |
- |
- // Enable cookies for extension URLs only. |
- const char* schemes[] = {chrome::kExtensionScheme}; |
- cookie_monster->SetCookieableSchemes(schemes, 1); |
- context->set_cookie_store(cookie_monster); |
- // No dynamic cookie policy for extensions. |
- |
- return context; |
-} |
- |
// Factory that creates the ChromeURLRequestContext for media. |
class FactoryForMedia : public ChromeURLRequestContextFactory { |
public: |
@@ -501,16 +475,6 @@ ChromeURLRequestContextGetter::CreateOffTheRecord(Profile* profile) { |
profile, new FactoryForOffTheRecord(profile)); |
} |
-// static |
-ChromeURLRequestContextGetter* |
-ChromeURLRequestContextGetter::CreateOffTheRecordForExtensions( |
- Profile* profile) { |
- DCHECK(profile->IsOffTheRecord()); |
- return new ChromeURLRequestContextGetter( |
- profile, |
- new FactoryForOffTheRecordExtensions(profile)); |
-} |
- |
void ChromeURLRequestContextGetter::CleanupOnUIThread() { |
CheckCurrentlyOnMainThread(); |