Make ComboboxListener work around being deleted from OnSelectedIndexChanged().
commit0c142a64d093558991899ce1fadff5baf19b8c95
authordbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 6 Dec 2013 01:50:52 +0000 (6 01:50 +0000)
committerdbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 6 Dec 2013 01:50:52 +0000 (6 01:50 +0000)
treeb54a2e10890b6bcbb9df94269b0b421c006ec5d4
parent9fbc1904e65693a689b8a3eb5b90986149206541
Make ComboboxListener work around being deleted from OnSelectedIndexChanged().

The concrete case for this is that the requestAutocomplete() dialog is adding a
country switcher that rebuilds (and deletes) its inputs on country change.

BUG=317837
R=sky@chromium.org
TEST=views_unittests, no segfaults

Review URL: https://codereview.chromium.org/104573003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239098 0039d316-1c4b-4281-b951-d872f2087c98
ui/views/controls/combobox/combobox.cc
ui/views/controls/combobox/combobox_unittest.cc