summaryrefslogtreecommitdiffstats
path: root/chrome/browser/importer
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/importer')
-rw-r--r--chrome/browser/importer/profile_writer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/importer/profile_writer.cc b/chrome/browser/importer/profile_writer.cc
index 671b860..0f89283 100644
--- a/chrome/browser/importer/profile_writer.cc
+++ b/chrome/browser/importer/profile_writer.cc
@@ -101,7 +101,7 @@ void ProfileWriter::AddBookmarkEntry(
const BookmarkNode* node = parent->GetChild(index);
if ((node->type() == BookmarkNode::BOOKMARK_BAR ||
node->type() == BookmarkNode::FOLDER) &&
- node->GetTitle() == folder_name) {
+ node->GetTitleAsString16() == WideToUTF16Hack(folder_name)) {
child = node;
break;
}
@@ -286,7 +286,7 @@ std::wstring ProfileWriter::GenerateUniqueFolderName(
for (int i = 0, child_count = other->GetChildCount(); i < child_count; ++i) {
const BookmarkNode* node = other->GetChild(i);
if (node->is_folder())
- other_folder_names.insert(node->GetTitle());
+ other_folder_names.insert(UTF16ToWideHack(node->GetTitleAsString16()));
}
if (other_folder_names.find(folder_name) == other_folder_names.end())
@@ -314,7 +314,7 @@ bool ProfileWriter::DoesBookmarkExist(
for (size_t i = 0; i < nodes_with_same_url.size(); ++i) {
const BookmarkNode* node = nodes_with_same_url[i];
- if (entry.title != node->GetTitle())
+ if (WideToUTF16Hack(entry.title) != node->GetTitleAsString16())
continue;
// Does the path match?