Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(533)

Unified Diff: sync/internal_api/write_node.cc

Issue 273283002: Sync: Do not generate non-UTF8 names for delete directives. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: adapt to base namespace change in r268754 Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/delete_directive_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/write_node.cc
===================================================================
--- sync/internal_api/write_node.cc (revision 268622)
+++ sync/internal_api/write_node.cc (working copy)
@@ -57,6 +57,7 @@
if (type != BOOKMARKS && needs_encryption) {
new_legal_title = kEncryptedString;
} else {
+ DCHECK(base::IsStringUTF8(title));
SyncAPINameToServerName(title, &new_legal_title);
base::TruncateUTF8ToByteSize(new_legal_title, 255, &new_legal_title);
}
« no previous file with comments | « chrome/browser/history/delete_directive_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698