summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync
diff options
context:
space:
mode:
authorjerrica@google.com <jerrica@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 17:33:18 +0000
committerjerrica@google.com <jerrica@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 17:33:18 +0000
commit737cd3a4e8b7490ccffc1cbe253a600f10fe8bd5 (patch)
tree822a7b02ae3466ff2e367f3c3ef9d685e466e3fe /chrome/browser/sync
parent3de008828cff06c001d423cdfb3f69acf6a2555b (diff)
downloadchromium_src-737cd3a4e8b7490ccffc1cbe253a600f10fe8bd5.zip
chromium_src-737cd3a4e8b7490ccffc1cbe253a600f10fe8bd5.tar.gz
chromium_src-737cd3a4e8b7490ccffc1cbe253a600f10fe8bd5.tar.bz2
Added a call to TruncateUTF8ToByteSize in build_commit_command.cc.
I added a call to TruncateUTF8ToByteSize in order to truncate the title to 255 bytes. BUG=43675 TEST=none Review URL: http://codereview.chromium.org/2849002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49971 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync')
-rw-r--r--chrome/browser/sync/engine/build_commit_command.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/sync/engine/build_commit_command.cc b/chrome/browser/sync/engine/build_commit_command.cc
index d0dc64b..a697c69 100644
--- a/chrome/browser/sync/engine/build_commit_command.cc
+++ b/chrome/browser/sync/engine/build_commit_command.cc
@@ -112,6 +112,7 @@ void BuildCommitCommand::ExecuteImpl(SyncSession* session) {
string name = meta_entry.Get(syncable::NON_UNIQUE_NAME);
CHECK(!name.empty()); // Make sure this isn't an update.
+ TruncateUTF8ToByteSize(name, 255, &name);
sync_entry->set_name(name);
// Set the non_unique_name. If we do, the server ignores