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

Unified Diff: sync/test/accounts_client/url_request_context_getter.cc

Issue 1138113003: Remove Test Accounts service client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « sync/test/accounts_client/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: sync/test/accounts_client/url_request_context_getter.cc
diff --git a/sync/test/accounts_client/url_request_context_getter.cc b/sync/test/accounts_client/url_request_context_getter.cc
deleted file mode 100644
index 11e1cc29f1ae5d480c43e69f98cb9d662f348ad3..0000000000000000000000000000000000000000
--- a/sync/test/accounts_client/url_request_context_getter.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2012 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 "sync/test/accounts_client/url_request_context_getter.h"
-
-#include <string>
-
-#include "net/proxy/proxy_config_service_fixed.h"
-#include "net/url_request/url_request_context.h"
-#include "net/url_request/url_request_context_builder.h"
-
-URLRequestContextGetter::URLRequestContextGetter(
- scoped_refptr<base::SingleThreadTaskRunner> network_task_runner)
- : network_task_runner_(network_task_runner) {
-}
-
-net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
- CHECK(network_task_runner_->BelongsToCurrentThread());
- if (!url_request_context_) {
- net::URLRequestContextBuilder builder;
- // net::HttpServer fails to parse headers if user-agent header is blank.
- builder.set_user_agent("sync-test-accounts-client");
- builder.DisableHttpCache();
-#if defined(OS_LINUX) || defined(OS_ANDROID)
- builder.set_proxy_config_service(
- new net::ProxyConfigServiceFixed(net::ProxyConfig::CreateDirect()));
-#endif
- url_request_context_.reset(builder.Build());
- }
- return url_request_context_.get();
-}
-
-scoped_refptr<base::SingleThreadTaskRunner>
- URLRequestContextGetter::GetNetworkTaskRunner() const {
- return network_task_runner_;
-}
-
-URLRequestContextGetter::~URLRequestContextGetter() {}
« no previous file with comments | « sync/test/accounts_client/url_request_context_getter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698