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

Unified Diff: chrome/browser/ui/webui/constrained_html_ui_browsertest.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/webui/collected_cookies_ui_delegate.cc ('k') | chrome/browser/ui/webui/html_dialog_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/constrained_html_ui_browsertest.cc
diff --git a/chrome/browser/ui/webui/constrained_html_ui_browsertest.cc b/chrome/browser/ui/webui/constrained_html_ui_browsertest.cc
index 9f8a444ea76d117a951c9f8106304950ad27b777..784584d237bdb7be09f75e5509f05d5da8db49f6 100644
--- a/chrome/browser/ui/webui/constrained_html_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/constrained_html_ui_browsertest.cc
@@ -6,6 +6,7 @@
#include "base/file_path.h"
#include "base/message_loop.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/webui/constrained_html_ui.h"
#include "chrome/browser/ui/webui/html_dialog_ui.h"
@@ -27,30 +28,31 @@ class TestHtmlDialogUIDelegate : public HtmlDialogUIDelegate {
virtual ~TestHtmlDialogUIDelegate() {}
// HTMLDialogUIDelegate implementation:
- virtual bool IsDialogModal() const {
+ virtual bool IsDialogModal() const OVERRIDE {
return true;
}
- virtual std::wstring GetDialogTitle() const {
- return std::wstring(L"Test");
+ virtual string16 GetDialogTitle() const OVERRIDE {
+ return UTF8ToUTF16("Test");
}
- virtual GURL GetDialogContentURL() const {
+ virtual GURL GetDialogContentURL() const OVERRIDE {
return GURL(chrome::kChromeUIConstrainedHTMLTestURL);
}
virtual void GetWebUIMessageHandlers(
- std::vector<WebUIMessageHandler*>* handlers) const {}
- virtual void GetDialogSize(gfx::Size* size) const {
+ std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE {}
+ virtual void GetDialogSize(gfx::Size* size) const OVERRIDE {
size->set_width(400);
size->set_height(400);
}
- virtual std::string GetDialogArgs() const {
+ virtual std::string GetDialogArgs() const OVERRIDE {
return std::string();
}
- virtual void OnDialogClosed(const std::string& json_retval) { }
- virtual void OnCloseContents(TabContents* source, bool* out_close_dialog) {
+ virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE { }
+ virtual void OnCloseContents(TabContents* source, bool* out_close_dialog)
+ OVERRIDE {
if (out_close_dialog)
*out_close_dialog = true;
}
- virtual bool ShouldShowDialogTitle() const { return true; }
+ virtual bool ShouldShowDialogTitle() const OVERRIDE { return true; }
};
} // namespace
« no previous file with comments | « chrome/browser/ui/webui/collected_cookies_ui_delegate.cc ('k') | chrome/browser/ui/webui/html_dialog_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698