diff options
author | sadrul <sadrul@chromium.org> | 2015-05-06 11:27:14 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-06 18:27:39 +0000 |
commit | 7486759b94d87eb987a89b4314939e80b8900307 (patch) | |
tree | f2d170393f20e411d4d19fb6211f47c40cac3e2c /ui/keyboard/keyboard.cc | |
parent | 87eb715c8a009ba592587125dfc39d56d3d248a6 (diff) | |
download | chromium_src-7486759b94d87eb987a89b4314939e80b8900307.zip chromium_src-7486759b94d87eb987a89b4314939e80b8900307.tar.gz chromium_src-7486759b94d87eb987a89b4314939e80b8900307.tar.bz2 |
virtual keyboard: It is not longer necessary to 'reset' for tests.
The virtual keyboard used to install a WebUIControllerFactory during
initialization, and it was necessary to reset the initialization state for the
keyboard so that it could reinstall the factory for each test. But the virtual
keyboard no longer uses webui. So remove the reset function.
BUG=none
Review URL: https://codereview.chromium.org/1130753004
Cr-Commit-Position: refs/heads/master@{#328561}
Diffstat (limited to 'ui/keyboard/keyboard.cc')
-rw-r--r-- | ui/keyboard/keyboard.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ui/keyboard/keyboard.cc b/ui/keyboard/keyboard.cc index 436b935..4e26637 100644 --- a/ui/keyboard/keyboard.cc +++ b/ui/keyboard/keyboard.cc @@ -10,13 +10,8 @@ namespace keyboard { -static bool initialized = false; - -void ResetKeyboardForTesting() { - initialized = false; -} - void InitializeKeyboard() { + static bool initialized = false; if (initialized) return; initialized = true; |