summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/history/history_publisher.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/history/history_publisher.cc b/chrome/browser/history/history_publisher.cc
index 769a186..2c70a31 100644
--- a/chrome/browser/history/history_publisher.cc
+++ b/chrome/browser/history/history_publisher.cc
@@ -29,10 +29,11 @@ void HistoryPublisher::PublishPageContent(const base::Time& time,
const GURL& url,
const std::wstring& title,
const string16& contents) const {
+ std::wstring wide_contents = UTF16ToWide(contents);
PageData page_data = {
time,
url,
- UTF16ToWide(contents).c_str(),
+ wide_contents.c_str(),
title.c_str(),
NULL,
NULL,