From 6524385ef3fb2f1f26675d66cee2dad649883be6 Mon Sep 17 00:00:00 2001 From: "viettrungluu@chromium.org" Date: Wed, 18 Aug 2010 06:34:13 +0000 Subject: Remove wstrings from bookmarks, part 1 (of many). Start by removing wstring versions of BookmarkModel::AddURLWithCreationTime() and BookmarkModel::SetURLStarred(). BUG=23581 TEST=builds and passes tests Review URL: http://codereview.chromium.org/3111012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56488 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/importer/profile_writer.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/browser/importer/profile_writer.cc') diff --git a/chrome/browser/importer/profile_writer.cc b/chrome/browser/importer/profile_writer.cc index 0061efc..679f0ec 100644 --- a/chrome/browser/importer/profile_writer.cc +++ b/chrome/browser/importer/profile_writer.cc @@ -6,6 +6,7 @@ #include "base/string_util.h" #include "base/thread.h" +#include "base/utf_string_conversions.h" #include "chrome/browser/bookmarks/bookmark_model.h" #include "chrome/browser/importer/importer.h" #include "chrome/browser/password_manager/password_store.h" @@ -110,7 +111,7 @@ void ProfileWriter::AddBookmarkEntry( } groups_added_to.insert(parent); model->AddURLWithCreationTime(parent, parent->GetChildCount(), - it->title, it->url, it->creation_time); + WideToUTF16Hack(it->title), it->url, it->creation_time); // If some items are put into toolbar, it looks like the user was using // it in their last browser. We turn on the bookmarks toolbar. -- cgit v1.1