diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-24 17:38:59 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-24 17:38:59 +0000 |
commit | f5ad75410da18f0963d1a4901e45fd71d051595a (patch) | |
tree | 5485c6a5dca701f4ebe1bac5572909900fc86523 /chrome/browser/extensions/external_pref_extension_provider.h | |
parent | 03f152a414281c4c1d1382c8af7f4f2e6ea979d2 (diff) | |
download | chromium_src-f5ad75410da18f0963d1a4901e45fd71d051595a.zip chromium_src-f5ad75410da18f0963d1a4901e45fd71d051595a.tar.gz chromium_src-f5ad75410da18f0963d1a4901e45fd71d051595a.tar.bz2 |
Coverity: Pass strings by reference.
CID=4459,4563,4564,4566,4567,4569,4570,4571,4803
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/159342
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21540 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/external_pref_extension_provider.h')
-rw-r--r-- | chrome/browser/extensions/external_pref_extension_provider.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/external_pref_extension_provider.h b/chrome/browser/extensions/external_pref_extension_provider.h index 67d46e3..0b222b5 100644 --- a/chrome/browser/extensions/external_pref_extension_provider.h +++ b/chrome/browser/extensions/external_pref_extension_provider.h @@ -22,13 +22,13 @@ class ExternalPrefExtensionProvider : public ExternalExtensionProvider { // Used only during testing to not use the json file for external extensions, // but instead parse a json file specified by the test. - void SetPreferencesForTesting(std::string json_data_for_testing); + void SetPreferencesForTesting(const std::string& json_data_for_testing); // ExternalExtensionProvider implementation: virtual void VisitRegisteredExtension( Visitor* visitor, const std::set<std::string>& ids_to_ignore) const; - virtual Version* RegisteredVersion(std::string id, + virtual Version* RegisteredVersion(const std::string& id, Extension::Location* location) const; protected: scoped_ptr<DictionaryValue> prefs_; |