summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bookmarks
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-04 19:35:33 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-04 19:35:33 +0000
commit698f7f43984b1acbc74b0a64fd2205a3ff4efe07 (patch)
tree91f75dcb443d2d2b861998d091f2dda0706b2056 /chrome/browser/bookmarks
parentfca868203103ef3d0accbe6dded134364dc222f3 (diff)
downloadchromium_src-698f7f43984b1acbc74b0a64fd2205a3ff4efe07.zip
chromium_src-698f7f43984b1acbc74b0a64fd2205a3ff4efe07.tar.gz
chromium_src-698f7f43984b1acbc74b0a64fd2205a3ff4efe07.tar.bz2
Rename GetStringAsUTF16() to GetString() (and overload), etc.
Also do some drive-by wstring/wchar_t -> string/char changes (in addition to the necessary ones). BUG=none TEST=builds and tests pass Review URL: http://codereview.chromium.org/3091005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54944 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks')
-rw-r--r--chrome/browser/bookmarks/bookmark_codec.cc26
-rw-r--r--chrome/browser/bookmarks/bookmark_codec.h24
2 files changed, 25 insertions, 25 deletions
diff --git a/chrome/browser/bookmarks/bookmark_codec.cc b/chrome/browser/bookmarks/bookmark_codec.cc
index ad5c239..6edbadf 100644
--- a/chrome/browser/bookmarks/bookmark_codec.cc
+++ b/chrome/browser/bookmarks/bookmark_codec.cc
@@ -16,18 +16,18 @@
using base::Time;
-const wchar_t* BookmarkCodec::kRootsKey = L"roots";
-const wchar_t* BookmarkCodec::kRootFolderNameKey = L"bookmark_bar";
-const wchar_t* BookmarkCodec::kOtherBookmarkFolderNameKey = L"other";
-const wchar_t* BookmarkCodec::kVersionKey = L"version";
-const wchar_t* BookmarkCodec::kChecksumKey = L"checksum";
-const wchar_t* BookmarkCodec::kIdKey = L"id";
-const wchar_t* BookmarkCodec::kTypeKey = L"type";
-const wchar_t* BookmarkCodec::kNameKey = L"name";
-const wchar_t* BookmarkCodec::kDateAddedKey = L"date_added";
-const wchar_t* BookmarkCodec::kURLKey = L"url";
-const wchar_t* BookmarkCodec::kDateModifiedKey = L"date_modified";
-const wchar_t* BookmarkCodec::kChildrenKey = L"children";
+const char* BookmarkCodec::kRootsKey = "roots";
+const char* BookmarkCodec::kRootFolderNameKey = "bookmark_bar";
+const char* BookmarkCodec::kOtherBookmarkFolderNameKey = "other";
+const char* BookmarkCodec::kVersionKey = "version";
+const char* BookmarkCodec::kChecksumKey = "checksum";
+const char* BookmarkCodec::kIdKey = "id";
+const char* BookmarkCodec::kTypeKey = "type";
+const char* BookmarkCodec::kNameKey = "name";
+const char* BookmarkCodec::kDateAddedKey = "date_added";
+const char* BookmarkCodec::kURLKey = "url";
+const char* BookmarkCodec::kDateModifiedKey = "date_modified";
+const char* BookmarkCodec::kChildrenKey = "children";
const char* BookmarkCodec::kTypeURL = "url";
const char* BookmarkCodec::kTypeFolder = "folder";
@@ -204,7 +204,7 @@ bool BookmarkCodec::DecodeNode(const DictionaryValue& value,
maximum_id_ = std::max(maximum_id_, id);
string16 title;
- value.GetStringAsUTF16(kNameKey, &title);
+ value.GetString(kNameKey, &title);
std::string date_added_string;
if (!value.GetString(kDateAddedKey, &date_added_string))
diff --git a/chrome/browser/bookmarks/bookmark_codec.h b/chrome/browser/bookmarks/bookmark_codec.h
index b9e0d79..3f1dd82 100644
--- a/chrome/browser/bookmarks/bookmark_codec.h
+++ b/chrome/browser/bookmarks/bookmark_codec.h
@@ -73,18 +73,18 @@ class BookmarkCodec {
bool ids_reassigned() const { return ids_reassigned_; }
// Names of the various keys written to the Value.
- static const wchar_t* kRootsKey;
- static const wchar_t* kRootFolderNameKey;
- static const wchar_t* kOtherBookmarkFolderNameKey;
- static const wchar_t* kVersionKey;
- static const wchar_t* kChecksumKey;
- static const wchar_t* kIdKey;
- static const wchar_t* kTypeKey;
- static const wchar_t* kNameKey;
- static const wchar_t* kDateAddedKey;
- static const wchar_t* kURLKey;
- static const wchar_t* kDateModifiedKey;
- static const wchar_t* kChildrenKey;
+ static const char* kRootsKey;
+ static const char* kRootFolderNameKey;
+ static const char* kOtherBookmarkFolderNameKey;
+ static const char* kVersionKey;
+ static const char* kChecksumKey;
+ static const char* kIdKey;
+ static const char* kTypeKey;
+ static const char* kNameKey;
+ static const char* kDateAddedKey;
+ static const char* kURLKey;
+ static const char* kDateModifiedKey;
+ static const char* kChildrenKey;
// Possible values for kTypeKey.
static const char* kTypeURL;