diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-11 13:27:51 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-11 13:27:51 +0000 |
commit | 0e3fafd66d0de2101b063c681c4191211db42ddc (patch) | |
tree | 5be25fb79f4e07008c398864df9e95494f138755 | |
parent | 332af773603ecd4c78eca598c5f7ce8d70304381 (diff) | |
download | chromium_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
-rw-r--r-- | net/base/net_module.cc | 5 |
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 - |