Index: ui/keyboard/keyboard_util.cc |
diff --git a/ui/keyboard/keyboard_util.cc b/ui/keyboard/keyboard_util.cc |
index d8c7b7add01ee1f39748f0d871fcf3d31627bc1c..c3b66b51acede55159603725d1b769d4791aca41 100644 |
--- a/ui/keyboard/keyboard_util.cc |
+++ b/ui/keyboard/keyboard_util.cc |
@@ -166,6 +166,11 @@ const void MarkKeyboardLoadStarted() { |
} |
const 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()) |
+ 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()); |