Remove linux_chromium_gn_dbg from the chromium CQ.
[chromium-blink-merge.git] / net / proxy / proxy_config_source.cc
blobf3137ff57c5631eabe9662d6cdb07536de8fcb80
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/proxy/proxy_config_source.h"
7 #include "base/basictypes.h"
8 #include "base/logging.h"
10 namespace net {
12 namespace {
14 const char* const kSourceNames[] = {
15 "UNKNOWN",
16 "SYSTEM",
17 "SYSTEM FAILED",
18 "GCONF",
19 "GSETTINGS",
20 "KDE",
21 "ENV",
22 "CUSTOM",
23 "TEST"
25 static_assert(arraysize(kSourceNames) == NUM_PROXY_CONFIG_SOURCES,
26 "kSourceNames has incorrect size");
28 } // namespace
30 const char* ProxyConfigSourceToString(ProxyConfigSource source) {
31 DCHECK_GT(NUM_PROXY_CONFIG_SOURCES, source);
32 return kSourceNames[source];
35 } // namespace net