summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bookmarks/bookmark_codec.cc
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-04 16:58:12 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-04 16:58:12 +0000
commitff4c1d8cd62bad8351b44ee39145e5a6dc8fdf7f (patch)
tree8a8d04fe8c8ec3d1c1be30d13c92cb7d7b73561b /chrome/browser/bookmarks/bookmark_codec.cc
parent9792cc8882b31a267d1326a722aac80f053da0e0 (diff)
downloadchromium_src-ff4c1d8cd62bad8351b44ee39145e5a6dc8fdf7f.zip
chromium_src-ff4c1d8cd62bad8351b44ee39145e5a6dc8fdf7f.tar.gz
chromium_src-ff4c1d8cd62bad8351b44ee39145e5a6dc8fdf7f.tar.bz2
Rename DictionaryValue's SetStringFromUTF16() to SetString() (and overload).
Also do a bunch of drive-by changes while I'm at it. Still to do: rename GetStringAsUTF16() to GetString(). BUG=none TEST=builds everywhere, tests pass Review URL: http://codereview.chromium.org/3033050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54915 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_codec.cc')
-rw-r--r--chrome/browser/bookmarks/bookmark_codec.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/bookmarks/bookmark_codec.cc b/chrome/browser/bookmarks/bookmark_codec.cc
index 35ed181..ad5c239 100644
--- a/chrome/browser/bookmarks/bookmark_codec.cc
+++ b/chrome/browser/bookmarks/bookmark_codec.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -88,7 +88,7 @@ Value* BookmarkCodec::EncodeNode(const BookmarkNode* node) {
std::string id = base::Int64ToString(node->id());
value->SetString(kIdKey, id);
const string16& title = node->GetTitleAsString16();
- value->SetStringFromUTF16(kNameKey, title);
+ value->SetString(kNameKey, title);
value->SetString(kDateAddedKey,
base::Int64ToString(node->date_added().ToInternalValue()));
if (node->type() == BookmarkNode::URL) {