Fix memory leaks caused by chrome/browser/chromeos/input_method/*.cc (part 3)
- Removed the IdMaps singleton class from input_method_util.cc to remove Valgrind warnings (see the issue 48130).
- Put all free functions in input_method_util.cc in a newly created class InputMethodUtil. Moved all std::sets and std::maps in IdMaps to the new class.
- Add an instance of InputMethodUtil to InputMethodManagerImpl.
- Removed wide string and UTF-8 string versions of GetString function from input_method_util.h since using wstring is now highly discouraged and the UTF-8 version is unused.
- Replaced all IME related std::wstrings with string16.
BUG=chromium:48130
TEST=ran unit_tests under valgrind (without suppressions) and confirmed that no leaks were reported.
Review URL: http://codereview.chromium.org/7903004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101476 0039d316-1c4b-4281-b951-d872f2087c98
27 files changed