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

Unified Diff: chrome/browser/printing/print_dialog_gtk.cc

Issue 3127009: Convert infobar APIs to UTF-16. (Closed)
Patch Set: works Created 10 years, 4 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/printing/print_dialog_gtk.cc
diff --git a/chrome/browser/printing/print_dialog_gtk.cc b/chrome/browser/printing/print_dialog_gtk.cc
index 5cc203dfa18ed8ba4c403b97def539fe474d0785..7bf9a39d4150b289b76d0196662fe44390b37f49 100644
--- a/chrome/browser/printing/print_dialog_gtk.cc
+++ b/chrome/browser/printing/print_dialog_gtk.cc
@@ -12,6 +12,7 @@
#include "base/lazy_instance.h"
#include "base/lock.h"
#include "base/logging.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/browser_window.h"
#include "chrome/browser/chrome_thread.h"
@@ -39,15 +40,15 @@ class PdfUnsupportedInfoBarDelegate : public LinkInfoBarDelegate {
virtual ~PdfUnsupportedInfoBarDelegate() {}
- virtual std::wstring GetMessageTextWithOffset(size_t* link_offset) const {
- std::wstring message(L"Oops! Your printer does not support PDF. Please "
- L"report this to us .");
+ virtual string16 GetMessageTextWithOffset(size_t* link_offset) const {
+ string16 message = UTF8ToUTF16("Oops! Your printer does not support PDF. "
+ "Please report this to us.");
*link_offset = message.length() - 1;
return message;
}
- virtual std::wstring GetLinkText() const {
- return std::wstring(L"here");
+ virtual string16 GetLinkText() const {
+ return UTF8ToUTF16("here");
}
virtual Type GetInfoBarType() {

Powered by Google App Engine
This is Rietveld 408576698