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

Unified Diff: net/proxy/dhcpcsvc_init_win.cc

Issue 7019015: Revert 85646 - Adds support for the DHCP portion of the WPAD (proxy auto-discovery) protocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | « net/proxy/dhcpcsvc_init_win.h ('k') | net/proxy/init_proxy_resolver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/dhcpcsvc_init_win.cc
===================================================================
--- net/proxy/dhcpcsvc_init_win.cc (revision 85647)
+++ net/proxy/dhcpcsvc_init_win.cc (working copy)
@@ -1,40 +0,0 @@
-// Copyright (c) 2011 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 "net/proxy/dhcpcsvc_init_win.h"
-
-#include "base/lazy_instance.h"
-#include "base/logging.h"
-
-#include <dhcpcsdk.h>
-#include <dhcpv6csdk.h>
-
-namespace {
-
-class DhcpcsvcInitSingleton {
- public:
- DhcpcsvcInitSingleton() {
- DWORD version = 0;
- DWORD err = DhcpCApiInitialize(&version);
- DCHECK(err == ERROR_SUCCESS); // DCHECK_EQ complains of unsigned mismatch.
- }
-
- ~DhcpcsvcInitSingleton() {
- // Worker pool threads that use the DHCP API may still be running, so skip
- // cleanup.
- }
-};
-
-static base::LazyInstance<DhcpcsvcInitSingleton> g_dhcpcsvc_init_singleton(
- base::LINKER_INITIALIZED);
-
-} // namespace
-
-namespace net {
-
-void EnsureDhcpcsvcInit() {
- g_dhcpcsvc_init_singleton.Get();
-}
-
-} // namespace net
« no previous file with comments | « net/proxy/dhcpcsvc_init_win.h ('k') | net/proxy/init_proxy_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698