| Index: ui/keyboard/keyboard_util.cc
|
| diff --git a/ui/keyboard/keyboard_util.cc b/ui/keyboard/keyboard_util.cc
|
| index c80d9f1a03c553aca883d81510a278f80f2f623c..a9c14ba8b0354f76ea04fbc6001a85dbc1566a48 100644
|
| --- a/ui/keyboard/keyboard_util.cc
|
| +++ b/ui/keyboard/keyboard_util.cc
|
| @@ -369,20 +369,16 @@ bool SendKeyEvent(const std::string type,
|
| }
|
|
|
| void MarkKeyboardLoadStarted() {
|
| - if (!g_keyboard_load_time_start.Get().ToInternalValue())
|
| + if (g_keyboard_load_time_start.Get().is_null())
|
| g_keyboard_load_time_start.Get() = base::Time::Now();
|
| }
|
|
|
| void MarkKeyboardLoadFinished() {
|
| // Possible to get a load finished without a start if navigating directly to
|
| // chrome://keyboard.
|
| - if (!g_keyboard_load_time_start.Get().ToInternalValue())
|
| + if (g_keyboard_load_time_start.Get().is_null())
|
| return;
|
|
|
| - // It should not be possible to finish loading the keyboard without starting
|
| - // to load it first.
|
| - DCHECK(g_keyboard_load_time_start.Get().ToInternalValue());
|
| -
|
| static bool logged = false;
|
| if (!logged) {
|
| // Log the delta only once.
|
|
|