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

Unified Diff: chrome/browser/ui/views/html_dialog_view.cc

Issue 7461136: Convert HtmlDialogUIDelegate::GetDialogTitle() to string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 9 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
« no previous file with comments | « chrome/browser/ui/views/html_dialog_view.h ('k') | chrome/browser/ui/views/html_dialog_view_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/html_dialog_view.cc
diff --git a/chrome/browser/ui/views/html_dialog_view.cc b/chrome/browser/ui/views/html_dialog_view.cc
index 73a53d6e0c9e130e7bcaeba04264d20cae210a95..fe35b0ebf71d2831598bc4c67fe7fc9523dbd145 100644
--- a/chrome/browser/ui/views/html_dialog_view.cc
+++ b/chrome/browser/ui/views/html_dialog_view.cc
@@ -6,6 +6,7 @@
#include <vector>
+#include "base/utf_string_conversions.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/views/window.h"
#include "content/browser/tab_contents/tab_contents.h"
@@ -100,7 +101,7 @@ bool HtmlDialogView::IsModal() const {
std::wstring HtmlDialogView::GetWindowTitle() const {
if (delegate_)
- return delegate_->GetDialogTitle();
+ return UTF16ToWideHack(delegate_->GetDialogTitle());
return std::wstring();
}
@@ -141,8 +142,8 @@ bool HtmlDialogView::IsDialogModal() const {
return IsModal();
}
-std::wstring HtmlDialogView::GetDialogTitle() const {
- return GetWindowTitle();
+string16 HtmlDialogView::GetDialogTitle() const {
+ return WideToUTF16Hack(GetWindowTitle());
}
GURL HtmlDialogView::GetDialogContentURL() const {
« no previous file with comments | « chrome/browser/ui/views/html_dialog_view.h ('k') | chrome/browser/ui/views/html_dialog_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698