Rebuild Views Textfield context menu runner on each showing.
commit3997c30092e409caed94d6879d1b1e1a73d4cd58
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 17 Jan 2014 07:15:11 +0000 (17 07:15 +0000)
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 17 Jan 2014 07:15:11 +0000 (17 07:15 +0000)
tree7bc2930c945f1f23aa3b147f779b40a5fa9b15bd
parentccfc7a81dd36377a25222010b4eee9e5c0561768
Rebuild Views Textfield context menu runner on each showing.

Without rebuilding, stale command states are used.
That may leave menu items incorrectly enabled/disabled.
Fixes a regression from http://crrev.com/244436

BUG=334604
TEST=Bug doesn't repro; omnibox and textfield context menu items are enabled or disabled as expected on each menu invocation.
R=sky@chromium.org

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

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