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

Unified Diff: ios/chrome/browser/net/ios_chrome_url_request_context_getter.cc

Issue 1742293003: Remove isolated app code from iOS's chrome_browser_state_io_data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 10 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 | « ios/chrome/browser/net/ios_chrome_url_request_context_getter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/net/ios_chrome_url_request_context_getter.cc
diff --git a/ios/chrome/browser/net/ios_chrome_url_request_context_getter.cc b/ios/chrome/browser/net/ios_chrome_url_request_context_getter.cc
index 0c53bc14d8e68ac5812376cb023aaae05f7cfd8d..e7338a44c36b9155242aac0a9165f9da9bf04ad4 100644
--- a/ios/chrome/browser/net/ios_chrome_url_request_context_getter.cc
+++ b/ios/chrome/browser/net/ios_chrome_url_request_context_getter.cc
@@ -50,32 +50,6 @@ class FactoryForMain : public IOSChromeURLRequestContextFactory {
ProtocolHandlerMap protocol_handlers_;
};
-// Factory that creates the URLRequestContext for a given isolated app.
-class FactoryForIsolatedApp : public IOSChromeURLRequestContextFactory {
- public:
- FactoryForIsolatedApp(const ChromeBrowserStateIOData* io_data,
- const base::FilePath& partition_path,
- net::URLRequestContextGetter* main_context)
- : io_data_(io_data),
- partition_path_(partition_path),
- main_request_context_getter_(main_context) {}
-
- net::URLRequestContext* Create() override {
- // We will copy most of the state from the main request context.
- //
- // Note that this factory is one-shot. After Create() is called once, the
- // factory is actually destroyed. Thus it is safe to destructively pass
- // state onwards.
- return io_data_->GetIsolatedAppRequestContext(
- main_request_context_getter_->GetURLRequestContext(), partition_path_);
- }
-
- private:
- const ChromeBrowserStateIOData* const io_data_;
- const base::FilePath partition_path_;
- scoped_refptr<net::URLRequestContextGetter> main_request_context_getter_;
-};
-
} // namespace
// ----------------------------------------------------------------------------
@@ -128,13 +102,3 @@ IOSChromeURLRequestContextGetter* IOSChromeURLRequestContextGetter::Create(
return new IOSChromeURLRequestContextGetter(
make_scoped_ptr(new FactoryForMain(io_data, protocol_handlers)));
}
-
-// static
-IOSChromeURLRequestContextGetter*
-IOSChromeURLRequestContextGetter::CreateForIsolatedApp(
- net::URLRequestContextGetter* main_context,
- const ChromeBrowserStateIOData* io_data,
- const base::FilePath& partition_path) {
- return new IOSChromeURLRequestContextGetter(make_scoped_ptr(
- new FactoryForIsolatedApp(io_data, partition_path, main_context)));
-}
« no previous file with comments | « ios/chrome/browser/net/ios_chrome_url_request_context_getter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698