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

Side by Side Diff: chrome/browser/chromeos/proxy_config_service_impl.h

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // PrefProxyConfigTrackerImpl implementation. 51 // PrefProxyConfigTrackerImpl implementation.
52 virtual void OnProxyConfigChanged(ProxyPrefs::ConfigState config_state, 52 virtual void OnProxyConfigChanged(ProxyPrefs::ConfigState config_state,
53 const net::ProxyConfig& config) OVERRIDE; 53 const net::ProxyConfig& config) OVERRIDE;
54 54
55 // NetworkStateHandlerObserver implementation. 55 // NetworkStateHandlerObserver implementation.
56 virtual void DefaultNetworkChanged(const NetworkState* network) OVERRIDE; 56 virtual void DefaultNetworkChanged(const NetworkState* network) OVERRIDE;
57 57
58 // Register UseShardProxies preference. 58 // Register UseShardProxies preference.
59 static void RegisterPrefs(PrefRegistrySimple* registry); 59 static void RegisterPrefs(PrefRegistrySimple* registry);
60 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); 60 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
61 61
62 protected: 62 protected:
63 friend class UIProxyConfigService; 63 friend class UIProxyConfigService;
64 64
65 // Returns value of UseSharedProxies preference if it's not default, else 65 // Returns value of UseSharedProxies preference if it's not default, else
66 // returns false if user is logged in and true otherwise. 66 // returns false if user is logged in and true otherwise.
67 static bool GetUseSharedProxies(const PrefService* pref_service); 67 static bool GetUseSharedProxies(const PrefService* pref_service);
68 68
69 // Returns true if proxy is to be ignored for this profile and |onc_source|, 69 // Returns true if proxy is to be ignored for this profile and |onc_source|,
70 // e.g. this happens if the network is shared and use-shared-proxies is turned 70 // e.g. this happens if the network is shared and use-shared-proxies is turned
(...skipping 23 matching lines...) Expand all
94 BooleanPrefMember use_shared_proxies_; 94 BooleanPrefMember use_shared_proxies_;
95 95
96 base::WeakPtrFactory<ProxyConfigServiceImpl> pointer_factory_; 96 base::WeakPtrFactory<ProxyConfigServiceImpl> pointer_factory_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceImpl); 98 DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceImpl);
99 }; 99 };
100 100
101 } // namespace chromeos 101 } // namespace chromeos
102 102
103 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_ 103 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/preferences_unittest.cc ('k') | chrome/browser/chromeos/proxy_config_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698