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

Side by Side Diff: net/proxy/proxy_config_source.cc

Issue 10310179: Track sources of proxy settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyright Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #include "net/proxy/proxy_config_source.h"
6
7 #include "base/basictypes.h"
8 #include "base/logging.h"
9
10 namespace net {
11
12 namespace {
13
14 const char* kSourceNames[] = {
15 "UNKNOWN",
16 "SYSTEM",
17 "SYSTEM FAILED",
18 "GCONF",
19 "GSETTINGS",
20 "KDE",
21 "ENV",
22 "CUSTOM",
23 "TEST"
24 };
25 COMPILE_ASSERT(ARRAYSIZE_UNSAFE(kSourceNames) == NUM_PROXY_CONFIG_SOURCES,
26 source_names_incorrect_size);
27
28 } // namespace
29
30 const char* ProxyConfigSourceToString(ProxyConfigSource source) {
31 DCHECK_GT(NUM_PROXY_CONFIG_SOURCES, source);
32 return kSourceNames[source];
33 }
34
35 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698