summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/user_script_master.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 20:38:59 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 20:38:59 +0000
commit262ccb1ba254e91a13969333b8a10c02f2242fc2 (patch)
tree63f7d4c8d67d08f9eaf13da04b4f3f9b173e8a59 /chrome/browser/extensions/user_script_master.h
parent6112ed42d73b58030cd68fbc6c4ba9f66ccecafa (diff)
downloadchromium_src-262ccb1ba254e91a13969333b8a10c02f2242fc2.zip
chromium_src-262ccb1ba254e91a13969333b8a10c02f2242fc2.tar.gz
chromium_src-262ccb1ba254e91a13969333b8a10c02f2242fc2.tar.bz2
Coverity: Pass FilePaths by reference.
CID=2696 BUG=none TEST=none Review URL: http://codereview.chromium.org/159353 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21567 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/user_script_master.h')
-rw-r--r--chrome/browser/extensions/user_script_master.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/user_script_master.h b/chrome/browser/extensions/user_script_master.h
index ab87631..557032e 100644
--- a/chrome/browser/extensions/user_script_master.h
+++ b/chrome/browser/extensions/user_script_master.h
@@ -73,7 +73,7 @@ class UserScriptMaster : public base::RefCounted<UserScriptMaster>,
static bool ParseMetadataHeader(const StringPiece& script_text,
UserScript* script);
- static void LoadScriptsFromDirectory(const FilePath script_dir,
+ static void LoadScriptsFromDirectory(const FilePath& script_dir,
UserScriptList* result);
explicit ScriptReloader(UserScriptMaster* master);
@@ -81,7 +81,7 @@ class UserScriptMaster : public base::RefCounted<UserScriptMaster>,
// Start a scan for scripts.
// Will always send a message to the master upon completion.
void StartScan(MessageLoop* work_loop, const FilePath& script_dir,
- const UserScriptList &external_scripts);
+ const UserScriptList& external_scripts);
// The master is going away; don't call it back.
void DisownMaster() {