summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_resource.h
diff options
context:
space:
mode:
authorrnorton10@gmail.com <rnorton10@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-29 00:07:57 +0000
committerrnorton10@gmail.com <rnorton10@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-29 00:07:57 +0000
commit7ac27facde2ad544c1a1e4b63d1410e48ffa5670 (patch)
treeda4c8c7943a19e5e75db07e63e3952f179e1cbd5 /chrome/common/extensions/extension_resource.h
parent6fbf02f24ae100f549347926300fdb52703e5c7a (diff)
downloadchromium_src-7ac27facde2ad544c1a1e4b63d1410e48ffa5670.zip
chromium_src-7ac27facde2ad544c1a1e4b63d1410e48ffa5670.tar.gz
chromium_src-7ac27facde2ad544c1a1e4b63d1410e48ffa5670.tar.bz2
Make ExtensionResource::NormalizeSeperators pass by reference.
Spawned off of a comment I made over a Coverity cl http://codereview.chromium.org/6730046/. Currently, there is ret_val which is simply unused - this changes the code in ExtensionResource::NormalizeSeperators to use the variable so that its single param can be passed by reference. BUG=none TEST=Compiles; functionality remains the same. Review URL: http://codereview.chromium.org/6698061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79637 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_resource.h')
-rw-r--r--chrome/common/extensions/extension_resource.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/common/extensions/extension_resource.h b/chrome/common/extensions/extension_resource.h
index 6fe3773..4a7d8cf 100644
--- a/chrome/common/extensions/extension_resource.h
+++ b/chrome/common/extensions/extension_resource.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -44,7 +44,8 @@ class ExtensionResource {
bool empty() { return extension_root().empty(); }
// Unit test helpers.
- FilePath::StringType NormalizeSeperators(FilePath::StringType path) const;
+ FilePath::StringType NormalizeSeperators(
+ const FilePath::StringType& path) const;
bool ComparePathWithDefault(const FilePath& path) const;
private: