Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(440)

Unified Diff: chrome/browser/history/history_publisher.cc

Issue 2714012: Convert page contents grabbing from wide to UTF16. The current code is a bit... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/history_publisher.cc
===================================================================
--- chrome/browser/history/history_publisher.cc (revision 49439)
+++ chrome/browser/history/history_publisher.cc (working copy)
@@ -4,6 +4,8 @@
#include "chrome/browser/history/history_publisher.h"
+#include "base/utf_string_conversions.h"
+
namespace history {
const char* const HistoryPublisher::kThumbnailImageFormat = "image/jpeg";
@@ -26,11 +28,11 @@
void HistoryPublisher::PublishPageContent(const base::Time& time,
const GURL& url,
const std::wstring& title,
- const std::wstring& contents) const {
+ const string16& contents) const {
PageData page_data = {
time,
url,
- contents.c_str(),
+ UTF16ToWide(contents).c_str(),
title.c_str(),
NULL,
NULL,

Powered by Google App Engine
This is Rietveld 408576698