summaryrefslogtreecommitdiffstats
path: root/chrome/browser/importer
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-18 06:34:13 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-18 06:34:13 +0000
commit6524385ef3fb2f1f26675d66cee2dad649883be6 (patch)
treec0f807e54894299399da67834a1980534daa1a2d /chrome/browser/importer
parentf51ef0d27f701feb2c47096c9a73039e0c389a60 (diff)
downloadchromium_src-6524385ef3fb2f1f26675d66cee2dad649883be6.zip
chromium_src-6524385ef3fb2f1f26675d66cee2dad649883be6.tar.gz
chromium_src-6524385ef3fb2f1f26675d66cee2dad649883be6.tar.bz2
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
Diffstat (limited to 'chrome/browser/importer')
-rw-r--r--chrome/browser/importer/profile_writer.cc3
1 files changed, 2 insertions, 1 deletions
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.