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"
14 const char* kSourceNames
[] = {
25 COMPILE_ASSERT(ARRAYSIZE_UNSAFE(kSourceNames
) == NUM_PROXY_CONFIG_SOURCES
,
26 source_names_incorrect_size
);
30 const char* ProxyConfigSourceToString(ProxyConfigSource source
) {
31 DCHECK_GT(NUM_PROXY_CONFIG_SOURCES
, source
);
32 return kSourceNames
[source
];