diff options
author | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-04 16:44:29 +0000 |
---|---|---|
committer | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-04 16:44:29 +0000 |
commit | aafb7821da75fc427ae025ba2c4a864340abf3ac (patch) | |
tree | d7f409301478fdaa07d72becb13a4f0ccc472d0d /net/proxy/proxy_config.h | |
parent | d7f205d44f8d5c3c0289c5b889467695f6da51fc (diff) | |
download | chromium_src-aafb7821da75fc427ae025ba2c4a864340abf3ac.zip chromium_src-aafb7821da75fc427ae025ba2c4a864340abf3ac.tar.gz chromium_src-aafb7821da75fc427ae025ba2c4a864340abf3ac.tar.bz2 |
Get rid of the static next_id_ counter, to make construction of ProxyConfig on different threads safe.
BUG=11323
Review URL: http://codereview.chromium.org/102023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15209 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_config.h')
-rw-r--r-- | net/proxy/proxy_config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/proxy/proxy_config.h b/net/proxy/proxy_config.h index 50d9497..868fba9 100644 --- a/net/proxy/proxy_config.h +++ b/net/proxy/proxy_config.h @@ -27,6 +27,7 @@ class ProxyConfig { // Used to numerically identify this configuration. ID id() const { return id_; } + void set_id(int id) { id_ = id; } // True if the proxy configuration should be auto-detected. bool auto_detect; @@ -103,7 +104,6 @@ class ProxyConfig { bool Equals(const ProxyConfig& other) const; private: - static int last_id_; int id_; }; |