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

Unified Diff: blimp/engine/app/blimp_system_url_request_context_getter.cc

Issue 2629743003: Remove all blimp engine code (Closed)
Patch Set: Use consistent comment style in //chrome Created 3 years, 11 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
Index: blimp/engine/app/blimp_system_url_request_context_getter.cc
diff --git a/blimp/engine/app/blimp_system_url_request_context_getter.cc b/blimp/engine/app/blimp_system_url_request_context_getter.cc
deleted file mode 100644
index 0422ba5d72c8c48a2f65e6ab7d28f29b2ca6828d..0000000000000000000000000000000000000000
--- a/blimp/engine/app/blimp_system_url_request_context_getter.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "blimp/engine/app/blimp_system_url_request_context_getter.h"
-
-#include <utility>
-#include <vector>
-
-#include "base/logging.h"
-#include "base/single_thread_task_runner.h"
-#include "blimp/engine/common/blimp_user_agent.h"
-#include "content/public/browser/browser_thread.h"
-#include "net/proxy/proxy_service.h"
-#include "net/url_request/url_request_context.h"
-#include "net/url_request/url_request_context_builder.h"
-
-namespace blimp {
-namespace engine {
-
-BlimpSystemURLRequestContextGetter::BlimpSystemURLRequestContextGetter() {
- DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
-}
-
-BlimpSystemURLRequestContextGetter::~BlimpSystemURLRequestContextGetter() {}
-
-net::URLRequestContext*
-BlimpSystemURLRequestContextGetter::GetURLRequestContext() {
- DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
- if (!url_request_context_) {
- // Use default values
- net::URLRequestContextBuilder builder;
-
- // TODO(jessicag): See if proxy_service setup should be harmonized with
- // user request context getter. http://crbug/609981
- builder.set_proxy_service(net::ProxyService::CreateDirect());
- builder.set_user_agent(GetBlimpEngineUserAgent());
- url_request_context_ = builder.Build();
- }
- return url_request_context_.get();
-}
-
-scoped_refptr<base::SingleThreadTaskRunner>
-BlimpSystemURLRequestContextGetter::GetNetworkTaskRunner() const {
- return content::BrowserThread::GetTaskRunnerForThread(
- content::BrowserThread::IO);
-}
-
-} // namespace engine
-} // namespace blimp

Powered by Google App Engine
This is Rietveld 408576698