diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-11 04:37:14 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-11 04:37:14 +0000 |
commit | 3562f1b7d9d71ff68d4d0936112daa1ea1fa7268 (patch) | |
tree | a118bc1dbe4ef0050791fbe204ca364c484e8020 /chrome/browser/safe_browsing | |
parent | 62532e803f8090a4745cbf119d57e83510e88c1f (diff) | |
download | chromium_src-3562f1b7d9d71ff68d4d0936112daa1ea1fa7268.zip chromium_src-3562f1b7d9d71ff68d4d0936112daa1ea1fa7268.tar.gz chromium_src-3562f1b7d9d71ff68d4d0936112daa1ea1fa7268.tar.bz2 |
Coverity: Pass parameters by ref.
CID=14063,14197,14317,14659,14898,14958,14983,15408,15410,15411
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6677010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77787 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing')
-rw-r--r-- | chrome/browser/safe_browsing/malware_details.cc | 2 | ||||
-rw-r--r-- | chrome/browser/safe_browsing/malware_details.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/safe_browsing/malware_details.cc b/chrome/browser/safe_browsing/malware_details.cc index da6c848..f291284 100644 --- a/chrome/browser/safe_browsing/malware_details.cc +++ b/chrome/browser/safe_browsing/malware_details.cc @@ -62,7 +62,7 @@ MalwareDetails* MalwareDetails::NewMalwareDetails( // Create a MalwareDetails for the given tab. Runs in the UI thread. MalwareDetails::MalwareDetails( TabContents* tab_contents, - const SafeBrowsingService::UnsafeResource resource) + const SafeBrowsingService::UnsafeResource& resource) : TabContentsObserver(tab_contents), resource_(resource) { StartCollection(); diff --git a/chrome/browser/safe_browsing/malware_details.h b/chrome/browser/safe_browsing/malware_details.h index efb3eef..815f45b 100644 --- a/chrome/browser/safe_browsing/malware_details.h +++ b/chrome/browser/safe_browsing/malware_details.h @@ -53,7 +53,7 @@ class MalwareDetails : public base::RefCountedThreadSafe<MalwareDetails>, friend class MalwareDetailsFactoryImpl; MalwareDetails(TabContents* tab_contents, - const SafeBrowsingService::UnsafeResource resource); + const SafeBrowsingService::UnsafeResource& resource); // Called on the IO thread with the DOM details. virtual void AddDOMDetails( |