diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 06:00:59 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 06:00:59 +0000 |
commit | e8450483095b2b40ae8f78f33d2d2487ee1d1aa6 (patch) | |
tree | 23f1c42e290ce35dfd9c06bfb55d81b0b1f353aa /base/string_util.cc | |
parent | 91ffbb3a177fb38b831b2a1fdec21de376f5403e (diff) | |
download | chromium_src-e8450483095b2b40ae8f78f33d2d2487ee1d1aa6.zip chromium_src-e8450483095b2b40ae8f78f33d2d2487ee1d1aa6.tar.gz chromium_src-e8450483095b2b40ae8f78f33d2d2487ee1d1aa6.tar.bz2 |
Add an accordian effect to NTP.
BUG=53248
Review URL: http://codereview.chromium.org/3250002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57966 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util.cc')
-rw-r--r-- | base/string_util.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/base/string_util.cc b/base/string_util.cc index 4dbcd7b..56aa39d 100644 --- a/base/string_util.cc +++ b/base/string_util.cc @@ -1013,7 +1013,11 @@ OutStringType DoReplaceStringPlaceholders(const FormatStringType& format_string, ++i; DCHECK('$' == *i || '1' <= *i) << "Invalid placeholder: " << *i; if ('$' == *i) { - formatted.push_back('$'); + while (i != format_string.end() && '$' == *i) { + formatted.push_back('$'); + ++i; + } + --i; } else { uintptr_t index = *i - '1'; if (offsets) { |