diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-09 08:32:27 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-09 08:32:27 +0000 |
commit | 707bd37ed8d42c6030cb43c889d343da8d218f90 (patch) | |
tree | 49096d56e7c0306ea616478f1cdfc313116364f9 /ui/views/window/dialog_client_view.cc | |
parent | d9c7755e6c948dcd57cd6777b22b32602741d0ea (diff) | |
download | chromium_src-707bd37ed8d42c6030cb43c889d343da8d218f90.zip chromium_src-707bd37ed8d42c6030cb43c889d343da8d218f90.tar.gz chromium_src-707bd37ed8d42c6030cb43c889d343da8d218f90.tar.bz2 |
views: Convert View::GetClassName() to return const char*.
BUG=235984
R=jamescook@chromium.org,sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/14676008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/window/dialog_client_view.cc')
-rw-r--r-- | ui/views/window/dialog_client_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/views/window/dialog_client_view.cc b/ui/views/window/dialog_client_view.cc index fdc6c53..7ae2023 100644 --- a/ui/views/window/dialog_client_view.cc +++ b/ui/views/window/dialog_client_view.cc @@ -155,7 +155,7 @@ void DialogClientView::OnWillChangeFocus(View* focused_before, const int default_button = GetDialogDelegate()->GetDefaultDialogButton(); LabelButton* new_default_button = NULL; if (focused_now && - (focused_now->GetClassName() == LabelButton::kViewClassName)) { + !strcmp(focused_now->GetClassName(), LabelButton::kViewClassName)) { new_default_button = static_cast<LabelButton*>(focused_now); } else if (default_button == ui::DIALOG_BUTTON_OK && ok_button_) { new_default_button = ok_button_; |