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

Unified Diff: chrome/browser/chromeos/options/language_hangul_config_view.cc

Issue 2799052: Hide cancel buttons on configuration dialogs. (Closed)
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/chromeos/options/language_hangul_config_view.cc
diff --git a/chrome/browser/chromeos/options/language_hangul_config_view.cc b/chrome/browser/chromeos/options/language_hangul_config_view.cc
index e200f6fcdced28638faf0f065a352502cf82fb01..3bc139d2aaed8bdcfe9a92b64dc4291bd9e25431 100644
--- a/chrome/browser/chromeos/options/language_hangul_config_view.cc
+++ b/chrome/browser/chromeos/options/language_hangul_config_view.cc
@@ -101,6 +101,18 @@ void LanguageHangulConfigView::Layout() {
contents_->SetBounds(0, 0, width(), height());
}
+int LanguageHangulConfigView::GetDialogButtons() const {
+ return MessageBoxFlags::DIALOGBUTTON_OK;
+}
+
+std::wstring LanguageHangulConfigView::GetDialogButtonLabel(
+ MessageBoxFlags::DialogButton button) const {
+ if (button == MessageBoxFlags::DIALOGBUTTON_OK) {
+ return l10n_util::GetString(IDS_OK);
+ }
+ return L"";
+}
+
std::wstring LanguageHangulConfigView::GetWindowTitle() const {
return l10n_util::GetString(
IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_TITLE);

Powered by Google App Engine
This is Rietveld 408576698