summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_config_service_linux.h
diff options
context:
space:
mode:
authormdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 18:13:20 +0000
committermdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 18:13:20 +0000
commitc6e01dc7a346439ae64a00f9acd204025e17a218 (patch)
treea9b71c7253e3f3c5df9d4ebfa3be6789b387d1ea /net/proxy/proxy_config_service_linux.h
parentaadcd1d93fc5f41fad7ccd22b97215bdd6bb7d5d (diff)
downloadchromium_src-c6e01dc7a346439ae64a00f9acd204025e17a218.zip
chromium_src-c6e01dc7a346439ae64a00f9acd204025e17a218.tar.gz
chromium_src-c6e01dc7a346439ae64a00f9acd204025e17a218.tar.bz2
Linux: fix a data race in a proxy config service unit test.
BUG=21474 TEST=none Review URL: http://codereview.chromium.org/214036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26833 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_config_service_linux.h')
-rw-r--r--net/proxy/proxy_config_service_linux.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/net/proxy/proxy_config_service_linux.h b/net/proxy/proxy_config_service_linux.h
index 0c5ee4e..ef6519a 100644
--- a/net/proxy/proxy_config_service_linux.h
+++ b/net/proxy/proxy_config_service_linux.h
@@ -33,6 +33,7 @@ class ProxyConfigServiceLinux : public ProxyConfigService {
// files. Defined here so unit tests can construct worst-case inputs.
static const size_t BUFFER_SIZE = 512;
+ GConfSettingGetter() {}
virtual ~GConfSettingGetter() {}
// Initializes the class: obtains a gconf client, or simulates one, in
@@ -74,6 +75,9 @@ class ProxyConfigServiceLinux : public ProxyConfigService {
// And for a string list.
virtual bool GetStringList(const char* key,
std::vector<std::string>* result) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(GConfSettingGetter);
};
// ProxyConfigServiceLinux is created on the UI thread, and
@@ -117,10 +121,6 @@ class ProxyConfigServiceLinux : public ProxyConfigService {
void SetupAndFetchInitialConfig(MessageLoop* glib_default_loop,
MessageLoop* io_loop,
MessageLoopForIO* file_loop);
- // Resets cached_config_ and releases the gconf_getter_, making it
- // possible to call SetupAndFetchInitialConfig() again. Only used
- // in testing.
- void Reset();
// Handler for gconf change notifications: fetches a new proxy
// configuration from gconf settings, and if this config is
@@ -214,9 +214,6 @@ class ProxyConfigServiceLinux : public ProxyConfigService {
delegate_->SetupAndFetchInitialConfig(glib_default_loop, io_loop,
file_loop);
}
- void Reset() {
- delegate_->Reset();
- }
void OnCheckProxyConfigSettings() {
delegate_->OnCheckProxyConfigSettings();
}