summaryrefslogtreecommitdiffstats
path: root/base/string_util_unittest.cc
diff options
context:
space:
mode:
authorjerrica@google.com <jerrica@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-17 16:20:33 +0000
committerjerrica@google.com <jerrica@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-17 16:20:33 +0000
commita89dc1ed4fa02fbf69591e6f8010658a50ec67cf (patch)
treebf209b8f1ea38b5d3a8fe8971bb6b217882aa739 /base/string_util_unittest.cc
parent8f3a19de23042068b07f10d8b867c8fb2c0df019 (diff)
downloadchromium_src-a89dc1ed4fa02fbf69591e6f8010658a50ec67cf.zip
chromium_src-a89dc1ed4fa02fbf69591e6f8010658a50ec67cf.tar.gz
chromium_src-a89dc1ed4fa02fbf69591e6f8010658a50ec67cf.tar.bz2
Made changes to TruncateUtF8ToByteSize to cleanup the code.
I made some corrections to my previously submitted function TruncateUTF8ToByteSize, in order to clean up the code, and use it to truncate sync node titles above 255 bytes. BUG=43675 TEST=base/string_util_unittest.cc Review URL: http://codereview.chromium.org/2632005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50112 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util_unittest.cc')
-rw-r--r--base/string_util_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/string_util_unittest.cc b/base/string_util_unittest.cc
index 2fdd62e..7afc0bd 100644
--- a/base/string_util_unittest.cc
+++ b/base/string_util_unittest.cc
@@ -85,7 +85,7 @@ bool Truncated(const std::string& input, const size_t byte_size,
std::string* output) {
size_t prev = input.length();
TruncateUTF8ToByteSize(input, byte_size, output);
- return prev != (*output).length();
+ return prev != output->length();
}
} // namespace