| Index: views/controls/button/native_button.cc
|
| diff --git a/views/controls/button/native_button.cc b/views/controls/button/native_button.cc
|
| index 89dae9c24d70f60f59237c88c4a67ee5f1ec93cc..e1693d35a97b370c50c20a9ad8294296bd50d384 100644
|
| --- a/views/controls/button/native_button.cc
|
| +++ b/views/controls/button/native_button.cc
|
| @@ -74,9 +74,7 @@ void NativeButton::SetLabel(const std::wstring& label) {
|
| // In order to overcome this problem, we mark the localized Hebrew strings as
|
| // RTL strings explicitly (using the appropriate Unicode formatting) so that
|
| // Windows displays the text correctly regardless of the HWND hierarchy.
|
| - std::wstring localized_label;
|
| - if (base::i18n::AdjustStringForLocaleDirection(label_, &localized_label))
|
| - label_ = localized_label;
|
| + base::i18n::AdjustStringForLocaleDirection(&label_);
|
|
|
| if (native_wrapper_)
|
| native_wrapper_->UpdateLabel();
|
|
|