diff options
author | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-22 17:38:31 +0000 |
---|---|---|
committer | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-22 17:38:31 +0000 |
commit | 4baff382e9e19cb984849d0d5a644289be1f4a3d (patch) | |
tree | 6fcda7691ad3c58caeb73c8a5db2cb3f2c8304a4 /chrome/browser/safe_browsing | |
parent | e675f7b8eed8528ad29fd2c77e7562a8369319ea (diff) | |
download | chromium_src-4baff382e9e19cb984849d0d5a644289be1f4a3d.zip chromium_src-4baff382e9e19cb984849d0d5a644289be1f4a3d.tar.gz chromium_src-4baff382e9e19cb984849d0d5a644289be1f4a3d.tar.bz2 |
Fixing coverity PASS_BY_VALUE bugs.
CIDs: 13844, 13845, 14689, 14731, 14732, 17117
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/7219012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90048 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing')
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_service.cc | 2 | ||||
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_service.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc index 252324c..e4564bf 100644 --- a/chrome/browser/safe_browsing/safe_browsing_service.cc +++ b/chrome/browser/safe_browsing/safe_browsing_service.cc @@ -1190,7 +1190,7 @@ void SafeBrowsingService::StartDownloadCheck(SafeBrowsingCheck* check, FROM_HERE, check->timeout_task, timeout_ms); } -void SafeBrowsingService::UpdateWhitelist(UnsafeResource resource) { +void SafeBrowsingService::UpdateWhitelist(const UnsafeResource& resource) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); // Whitelist this domain and warning type for the given tab. WhiteListedEntry entry; diff --git a/chrome/browser/safe_browsing/safe_browsing_service.h b/chrome/browser/safe_browsing/safe_browsing_service.h index e3a8549..65b7ea2 100644 --- a/chrome/browser/safe_browsing/safe_browsing_service.h +++ b/chrome/browser/safe_browsing/safe_browsing_service.h @@ -408,7 +408,7 @@ class SafeBrowsingService int64 timeout_ms); // Adds the given entry to the whitelist. Called on the UI thread. - void UpdateWhitelist(UnsafeResource resource); + void UpdateWhitelist(const UnsafeResource& resource); // The factory used to instanciate a SafeBrowsingService object. // Useful for tests, so they can provide their own implementation of |