diff options
author | kuan@chromium.org <kuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-03 17:21:50 +0000 |
---|---|---|
committer | kuan@chromium.org <kuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-03 17:21:50 +0000 |
commit | 5e90f82f1121ec44022d60f3645c8105cc8a6271 (patch) | |
tree | 7ea2bb9574b57514eab65121b427e3d16641bd02 /chrome_frame | |
parent | 79a087a3332e71e674d954a868244f671ab22a22 (diff) | |
download | chromium_src-5e90f82f1121ec44022d60f3645c8105cc8a6271.zip chromium_src-5e90f82f1121ec44022d60f3645c8105cc8a6271.tar.gz chromium_src-5e90f82f1121ec44022d60f3645c8105cc8a6271.tar.bz2 |
a little code cleanup for translate infobars
- use index of selected language menu item (which corresponds to index in array of languages) to check if selection has changed; was retrieving, converting and comparing text, which is more expensive and slower
- only call backend to translate when source and target languages are different
BUG=31297
TEST=verify that selection of languages in translate infobars still work as expected.
Review URL: http://codereview.chromium.org/563018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37979 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
0 files changed, 0 insertions, 0 deletions