summaryrefslogtreecommitdiffstats
path: root/views/window/dialog_client_view.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-25 17:22:18 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-25 17:22:18 +0000
commitaa25397e8f980bdc5ad8f161b4129d741aa13397 (patch)
tree512130f3b8b2a63114674aaa16867e61ffc419eb /views/window/dialog_client_view.cc
parent3469256c36397504e6a8eea88aaebd4823aad2d9 (diff)
downloadchromium_src-aa25397e8f980bdc5ad8f161b4129d741aa13397.zip
chromium_src-aa25397e8f980bdc5ad8f161b4129d741aa13397.tar.gz
chromium_src-aa25397e8f980bdc5ad8f161b4129d741aa13397.tar.bz2
views: Remove NativeTextButton::SetLabel() and replace all call sites with SetText().
Note: This was a TODO added by rogerta@chromium.org BUG=None TEST=None R=sky@chromium.org Review URL: http://codereview.chromium.org/7717028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98259 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/window/dialog_client_view.cc')
-rw-r--r--views/window/dialog_client_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/window/dialog_client_view.cc b/views/window/dialog_client_view.cc
index 7a1dc09..08c833b 100644
--- a/views/window/dialog_client_view.cc
+++ b/views/window/dialog_client_view.cc
@@ -47,7 +47,7 @@ void UpdateButtonHelper(NativeTextButton* button_view,
MessageBoxFlags::DialogButton button) {
std::wstring label = delegate->GetDialogButtonLabel(button);
if (!label.empty())
- button_view->SetLabel(label);
+ button_view->SetText(label);
button_view->SetEnabled(delegate->IsDialogButtonEnabled(button));
button_view->SetVisible(delegate->IsDialogButtonVisible(button));
}