summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_updater.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 17:39:10 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 17:39:10 +0000
commit2a025b18b5c8971caa8845da9a724a2092e37eae (patch)
tree8d18268a54724fa6d266d45ecca2542b5b5b08db /chrome/browser/extensions/extension_updater.h
parentf5ad75410da18f0963d1a4901e45fd71d051595a (diff)
downloadchromium_src-2a025b18b5c8971caa8845da9a724a2092e37eae.zip
chromium_src-2a025b18b5c8971caa8845da9a724a2092e37eae.tar.gz
chromium_src-2a025b18b5c8971caa8845da9a724a2092e37eae.tar.bz2
Coverity: Pass strings and GURLs by reference.
CID=5051,5052,5053 BUG=none TEST=none Review URL: http://codereview.chromium.org/159343 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21541 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_updater.h')
-rw-r--r--chrome/browser/extensions/extension_updater.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_updater.h b/chrome/browser/extensions/extension_updater.h
index 5af2c03..3973b4e 100644
--- a/chrome/browser/extensions/extension_updater.h
+++ b/chrome/browser/extensions/extension_updater.h
@@ -92,7 +92,7 @@ class ExtensionUpdater
std::string id;
GURL url;
ExtensionFetch() : id(""), url() {}
- ExtensionFetch(std::string i, GURL u) : id(i), url(u) {}
+ ExtensionFetch(const std::string& i, const GURL& u) : id(i), url(u) {}
};
// These are needed for unit testing, to help identify the correct mock
@@ -139,7 +139,7 @@ class ExtensionUpdater
void StartUpdateCheck(const GURL& url);
// Begins (or queues up) download of an updated extension.
- void FetchUpdatedExtension(const std::string& id, GURL url);
+ void FetchUpdatedExtension(const std::string& id, const GURL& url);
typedef std::vector<ParseResult*> ParseResultList;