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

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

Issue 6597070: Allow ProxyConfigService to report "no configuration set" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Eric's comments. Created 9 years, 8 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
« no previous file with comments | « net/proxy/proxy_config_service_fixed.h ('k') | net/proxy/proxy_config_service_linux.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/proxy/proxy_config_service_fixed.h" 5 #include "net/proxy/proxy_config_service_fixed.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 ProxyConfigServiceFixed::ProxyConfigServiceFixed(const ProxyConfig& pc) 9 ProxyConfigServiceFixed::ProxyConfigServiceFixed(const ProxyConfig& pc)
10 : pc_(pc) { 10 : pc_(pc) {
11 } 11 }
12 12
13 ProxyConfigServiceFixed::~ProxyConfigServiceFixed() {} 13 ProxyConfigServiceFixed::~ProxyConfigServiceFixed() {}
14 14
15 bool ProxyConfigServiceFixed::GetLatestProxyConfig(ProxyConfig* config) { 15 ProxyConfigService::ConfigAvailability
16 ProxyConfigServiceFixed::GetLatestProxyConfig(ProxyConfig* config) {
16 *config = pc_; 17 *config = pc_;
17 return true; 18 return CONFIG_VALID;
18 } 19 }
19 20
20 } // namespace net 21 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/proxy_config_service_fixed.h ('k') | net/proxy/proxy_config_service_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698