summaryrefslogtreecommitdiffstats
path: root/base/string_util.h
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 19:48:54 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 19:48:54 +0000
commit08daf0542dc5743a82bf55e8684bf1625ad7d997 (patch)
treeff4c2a2199746fff3c6d29e46d32e7e0e9e5ced9 /base/string_util.h
parentaece9ccd4c38dca6daad04c94d1cc96677e1fbac (diff)
downloadchromium_src-08daf0542dc5743a82bf55e8684bf1625ad7d997.zip
chromium_src-08daf0542dc5743a82bf55e8684bf1625ad7d997.tar.gz
chromium_src-08daf0542dc5743a82bf55e8684bf1625ad7d997.tar.bz2
Convert ReplaceStringPlaceholders(std::string...) to take a
StringPiece as the format string instead. This allows us to save a string copy in the new tab page. Also clean up some code in the extensions process binding that was doing excess string conversions. BUG=26228 Review URL: http://codereview.chromium.org/347019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30491 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util.h')
-rw-r--r--base/string_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/string_util.h b/base/string_util.h
index f128f99..1c58e91 100644
--- a/base/string_util.h
+++ b/base/string_util.h
@@ -550,7 +550,7 @@ string16 ReplaceStringPlaceholders(const string16& format_string,
const std::vector<string16>& subst,
std::vector<size_t>* offsets);
-std::string ReplaceStringPlaceholders(const std::string& format_string,
+std::string ReplaceStringPlaceholders(const base::StringPiece& format_string,
const std::vector<std::string>& subst,
std::vector<size_t>* offsets);