summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_config.h
diff options
context:
space:
mode:
authorsdoyon@chromium.org <sdoyon@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 14:37:39 +0000
committersdoyon@chromium.org <sdoyon@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 14:37:39 +0000
commit3e44697f8e0749d2acd1d3ee1431a27df2c94e74 (patch)
tree9c47adff10faf24a44a0c85193592b1ac2bdd433 /net/proxy/proxy_config.h
parent069b2bcaa3e12a0063acae3cdcf2beb16c1077c1 (diff)
downloadchromium_src-3e44697f8e0749d2acd1d3ee1431a27df2c94e74.zip
chromium_src-3e44697f8e0749d2acd1d3ee1431a27df2c94e74.tar.gz
chromium_src-3e44697f8e0749d2acd1d3ee1431a27df2c94e74.tar.bz2
Fix gconf for the linux proxy config service.
-Reenables fetching of settings from gconf. -Moves all gconf access to happen from the UI thread only, (where the default glib main loop runs). -Adds support for gconf notifications, avoiding having to poll the settings. -Fixes a small initialization glitch in the unittest. Plus minor code style tweaks. -Permanently removes gdk and glib threading initialization calls that were previously disabled. -Slight reorganization of ProxyService creation to pass down the IO thread MessageLoop. BUG=11111 TEST=none Review URL: http://codereview.chromium.org/113043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16739 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_config.h')
-rw-r--r--net/proxy/proxy_config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/proxy/proxy_config.h b/net/proxy/proxy_config.h
index b90e9b7..f9bc6d4 100644
--- a/net/proxy/proxy_config.h
+++ b/net/proxy/proxy_config.h
@@ -28,6 +28,7 @@ class ProxyConfig {
// Used to numerically identify this configuration.
ID id() const { return id_; }
void set_id(int id) { id_ = id; }
+ bool is_valid() { return id_ != INVALID_ID; }
// True if the proxy configuration should be auto-detected.
bool auto_detect;