summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/write_node.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-22 00:55:57 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-22 00:55:57 +0000
commit7fa5a1aeafaf667e734b68c263840fd608babd3d (patch)
tree75bdf4ea751c73c9638be4fa4b5a708248996ad2 /sync/internal_api/write_node.cc
parentd395db9f222e3b2c2ef24f74cf506b2917012521 (diff)
downloadchromium_src-7fa5a1aeafaf667e734b68c263840fd608babd3d.zip
chromium_src-7fa5a1aeafaf667e734b68c263840fd608babd3d.tar.gz
chromium_src-7fa5a1aeafaf667e734b68c263840fd608babd3d.tar.bz2
Cleanup: Remove some std::wstring usage in sync.
BUG=23581 Review URL: https://codereview.chromium.org/235553007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265131 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/write_node.cc')
-rw-r--r--sync/internal_api/write_node.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sync/internal_api/write_node.cc b/sync/internal_api/write_node.cc
index 018f444..6a634eb 100644
--- a/sync/internal_api/write_node.cc
+++ b/sync/internal_api/write_node.cc
@@ -41,7 +41,7 @@ void WriteNode::SetIsFolder(bool folder) {
MarkForSyncing();
}
-void WriteNode::SetTitle(const std::wstring& title) {
+void WriteNode::SetTitle(const std::string& title) {
DCHECK_NE(GetModelType(), UNSPECIFIED);
ModelType type = GetModelType();
// It's possible the nigori lost the set of encrypted types. If the current
@@ -57,7 +57,7 @@ void WriteNode::SetTitle(const std::wstring& title) {
if (type != BOOKMARKS && needs_encryption) {
new_legal_title = kEncryptedString;
} else {
- SyncAPINameToServerName(base::WideToUTF8(title), &new_legal_title);
+ SyncAPINameToServerName(title, &new_legal_title);
base::TruncateUTF8ToByteSize(new_legal_title, 255, &new_legal_title);
}