summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-11 13:27:51 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-11 13:27:51 +0000
commit0e3fafd66d0de2101b063c681c4191211db42ddc (patch)
tree5be25fb79f4e07008c398864df9e95494f138755 /net
parent332af773603ecd4c78eca598c5f7ce8d70304381 (diff)
downloadchromium_src-0e3fafd66d0de2101b063c681c4191211db42ddc.zip
chromium_src-0e3fafd66d0de2101b063c681c4191211db42ddc.tar.gz
chromium_src-0e3fafd66d0de2101b063c681c4191211db42ddc.tar.bz2
remove a bogus comment on thread safety.
Review URL: http://codereview.chromium.org/42034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11436 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/base/net_module.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/base/net_module.cc b/net/base/net_module.cc
index 7c3f9c1..de9a586 100644
--- a/net/base/net_module.cc
+++ b/net/base/net_module.cc
@@ -15,10 +15,7 @@ void NetModule::SetResourceProvider(ResourceProvider func) {
// static
StringPiece NetModule::GetResource(int key) {
- // avoid thread safety issues by copying provider address to a local var
- ResourceProvider func = resource_provider;
- return func ? func(key) : StringPiece();
+ return resource_provider ? resource_provider(key) : StringPiece();
}
} // namespace net
-