summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/url_fetcher_protect.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 16:07:14 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 16:07:14 +0000
commit6314e6f6d7ac203479afe79a46a3e592a2a8da69 (patch)
tree46f6de1466dfa7f7172045333d26063c3405c1dd /chrome/browser/net/url_fetcher_protect.cc
parent8b98be9556c88fb7cc231305fa707a6a18595738 (diff)
downloadchromium_src-6314e6f6d7ac203479afe79a46a3e592a2a8da69.zip
chromium_src-6314e6f6d7ac203479afe79a46a3e592a2a8da69.tar.gz
chromium_src-6314e6f6d7ac203479afe79a46a3e592a2a8da69.tar.bz2
Fix a bunch of minor Coverity issues.
- pass more things by const reference - check return codes (minor severity) Review URL: http://codereview.chromium.org/149643 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20731 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/url_fetcher_protect.cc')
-rw-r--r--chrome/browser/net/url_fetcher_protect.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/net/url_fetcher_protect.cc b/chrome/browser/net/url_fetcher_protect.cc
index 8798b5a..748a675 100644
--- a/chrome/browser/net/url_fetcher_protect.cc
+++ b/chrome/browser/net/url_fetcher_protect.cc
@@ -144,7 +144,8 @@ URLFetcherProtectManager* URLFetcherProtectManager::GetInstance() {
return protect_manager_.get();
}
-URLFetcherProtectEntry* URLFetcherProtectManager::Register(std::string id) {
+URLFetcherProtectEntry* URLFetcherProtectManager::Register(
+ const std::string& id) {
AutoLock lock(lock_);
ProtectService::iterator i = services_.find(id);
@@ -161,7 +162,7 @@ URLFetcherProtectEntry* URLFetcherProtectManager::Register(std::string id) {
}
URLFetcherProtectEntry* URLFetcherProtectManager::Register(
- std::string id, URLFetcherProtectEntry* entry) {
+ const std::string& id, URLFetcherProtectEntry* entry) {
AutoLock lock(lock_);
ProtectService::iterator i = services_.find(id);