diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-29 00:45:28 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-29 00:45:28 +0000 |
commit | 44063b4e3ea781d1f9cbfd392e2cec56a8f54509 (patch) | |
tree | c582c8bbd42e37dd07534273882ca05719d9f78e /chrome/browser/extensions/extension_bookmarks_module.cc | |
parent | 969894aba3265e77edafbc6556941ea693485cd8 (diff) | |
download | chromium_src-44063b4e3ea781d1f9cbfd392e2cec56a8f54509.zip chromium_src-44063b4e3ea781d1f9cbfd392e2cec56a8f54509.tar.gz chromium_src-44063b4e3ea781d1f9cbfd392e2cec56a8f54509.tar.bz2 |
Remove wstrings from bookmarks, part 17.
This converts lots of (wstring) GetTitle()s to (string16) GetTitleAsString16().
Soon, I'll be able to delete the former, and rename the latter (s/AsString16//).
BUG=23581
TEST=builds and passes tests
Review URL: http://codereview.chromium.org/3226004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57800 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_bookmarks_module.cc')
-rw-r--r-- | chrome/browser/extensions/extension_bookmarks_module.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension_bookmarks_module.cc b/chrome/browser/extensions/extension_bookmarks_module.cc index 9e6fa50..1b3a986 100644 --- a/chrome/browser/extensions/extension_bookmarks_module.cc +++ b/chrome/browser/extensions/extension_bookmarks_module.cc @@ -628,7 +628,7 @@ class CreateBookmarkBucketMapper : public BookmarkBucketMapper<std::string> { if (!parent) return; - std::string bucket_id = WideToUTF8(parent->GetTitle()); + std::string bucket_id = UTF16ToUTF8(parent->GetTitleAsString16()); std::string title; json->GetString(keys::kTitleKey, &title); std::string url_string; @@ -664,8 +664,8 @@ class RemoveBookmarksBucketMapper : public BookmarkBucketMapper<std::string> { return; std::string bucket_id; - bucket_id += WideToUTF8(node->GetParent()->GetTitle()); - bucket_id += WideToUTF8(node->GetTitle()); + bucket_id += UTF16ToUTF8(node->GetParent()->GetTitleAsString16()); + bucket_id += UTF16ToUTF8(node->GetTitleAsString16()); bucket_id += node->GetURL().spec(); buckets->push_back(GetBucket(base::SHA1HashString(bucket_id))); } |