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

Unified Diff: chrome/browser/chromeos/dbus/chrome_proxy_resolver_delegate.cc

Issue 2775503002: chromeos:: Remove pointless ProxyResolverInterface. (Closed)
Patch Set: fix typo in existing comment Created 3 years, 9 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: chrome/browser/chromeos/dbus/chrome_proxy_resolver_delegate.cc
diff --git a/chrome/browser/chromeos/dbus/chrome_proxy_resolver_delegate.cc b/chrome/browser/chromeos/dbus/chrome_proxy_resolver_delegate.cc
deleted file mode 100644
index ac8874a344786fcd2ce8febe1c48aeaf7358ecf3..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/dbus/chrome_proxy_resolver_delegate.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2014 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 "chrome/browser/chromeos/dbus/chrome_proxy_resolver_delegate.h"
-
-#include "chrome/browser/profiles/profile_manager.h"
-#include "net/log/net_log_with_source.h"
-#include "net/proxy/proxy_service.h"
-#include "net/url_request/url_request_context_getter.h"
-
-namespace chromeos {
-
-ChromeProxyResolverDelegate::ChromeProxyResolverDelegate() {}
-
-ChromeProxyResolverDelegate::~ChromeProxyResolverDelegate() {}
-
-scoped_refptr<net::URLRequestContextGetter>
-ChromeProxyResolverDelegate::GetRequestContext() {
- Profile* profile = ProfileManager::GetPrimaryUserProfile();
- return profile->GetRequestContext();
-}
-
-int ChromeProxyResolverDelegate::ResolveProxy(
- net::ProxyService* proxy_service,
- const GURL& url,
- net::ProxyInfo* results,
- const net::CompletionCallback& callback) {
- DCHECK(proxy_service);
- DCHECK(results);
- return proxy_service->ResolveProxy(url, std::string(), results, callback,
- nullptr, nullptr, net::NetLogWithSource());
-}
-
-} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698