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

Unified Diff: chrome/browser/ui/webui/net_export_ui.cc

Issue 2852133002: Remove PAC-fetching URLRequestContext. (Closed)
Patch Set: More upstream merge conflicts! Fun! Created 3 years, 7 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/proxy_browsertest.cc ('k') | chrome/browser/ui/webui/net_internals/net_internals_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/net_export_ui.cc
diff --git a/chrome/browser/ui/webui/net_export_ui.cc b/chrome/browser/ui/webui/net_export_ui.cc
index be80d2063171fa78a83e3000d038fb53198f6a07..84922b48c859c729da17d13070d8a685407afa1f 100644
--- a/chrome/browser/ui/webui/net_export_ui.cc
+++ b/chrome/browser/ui/webui/net_export_ui.cc
@@ -51,29 +51,6 @@ using content::WebUIMessageHandler;
namespace {
-class ProxyScriptFetcherContextGetter : public net::URLRequestContextGetter {
- public:
- explicit ProxyScriptFetcherContextGetter(IOThread* io_thread)
- : io_thread_(io_thread) {}
-
- net::URLRequestContext* GetURLRequestContext() override {
- DCHECK_CURRENTLY_ON(BrowserThread::IO);
- DCHECK(io_thread_->globals()->proxy_script_fetcher_context.get());
- return io_thread_->globals()->proxy_script_fetcher_context.get();
- }
-
- scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner()
- const override {
- return BrowserThread::GetTaskRunnerForThread(BrowserThread::IO);
- }
-
- protected:
- ~ProxyScriptFetcherContextGetter() override {}
-
- private:
- IOThread* const io_thread_; // Owned by BrowserProcess.
-};
-
// May only be accessed on the UI thread
base::LazyInstance<base::FilePath>::Leaky
last_save_dir = LAZY_INSTANCE_INITIALIZER;
@@ -399,8 +376,6 @@ NetExportMessageHandler::GetURLRequestContexts() const {
->GetMediaURLRequestContext());
context_getters.push_back(
g_browser_process->io_thread()->system_url_request_context_getter());
- context_getters.push_back(
- new ProxyScriptFetcherContextGetter(g_browser_process->io_thread()));
return context_getters;
}
« no previous file with comments | « chrome/browser/net/proxy_browsertest.cc ('k') | chrome/browser/ui/webui/net_internals/net_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698