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

Unified Diff: printing/page_overlays.cc

Issue 3292019: Printing: Convert several wstrings to string16. (Closed)
Patch Set: Review fixes. Created 10 years, 3 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
« no previous file with comments | « chrome/browser/printing/print_view_manager.cc ('k') | printing/page_overlays_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/page_overlays.cc
diff --git a/printing/page_overlays.cc b/printing/page_overlays.cc
index 68c184b9d4e8e878172bb2fe62d7d2247afd690d..eb0c2a697b8de868fbde939c362ad0b1e47b81ac 100644
--- a/printing/page_overlays.cc
+++ b/printing/page_overlays.cc
@@ -149,21 +149,21 @@ std::wstring PageOverlays::ReplaceVariables(const std::wstring& input,
offset = ReplaceKey(&output,
offset,
wcslen(kTitle),
- document.name());
+ UTF16ToWideHack(document.name()));
} else if (0 == output.compare(offset,
wcslen(kTime),
kTime)) {
offset = ReplaceKey(&output,
offset,
wcslen(kTime),
- document.time());
+ UTF16ToWideHack(document.time()));
} else if (0 == output.compare(offset,
wcslen(kDate),
kDate)) {
offset = ReplaceKey(&output,
offset,
wcslen(kDate),
- document.date());
+ UTF16ToWideHack(document.date()));
} else if (0 == output.compare(offset,
wcslen(kPage),
kPage)) {
« no previous file with comments | « chrome/browser/printing/print_view_manager.cc ('k') | printing/page_overlays_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698