Index: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
index 3cda1193d715d889eaa0a7063b20081bed50bd22..0d5fc0869f4f6fb6b6236c8d2cc159b821375a5c 100644 |
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
@@ -18,6 +18,7 @@ |
#include "ui/aura/window_tree_host.h" |
#include "ui/base/hit_test.h" |
#include "ui/base/ime/input_method.h" |
+#include "ui/base/ime/input_method_log_collector.h" |
#include "ui/compositor/layer.h" |
#include "ui/gfx/canvas.h" |
#include "ui/gfx/display.h" |
@@ -387,6 +388,9 @@ void DesktopNativeWidgetAura::HandleActivationChanged(bool active) { |
// Refreshes the focus info to IMF in case that IMF cached the old info |
// about focused text input client when it was "inactive". |
GetInputMethod()->OnFocus(); |
+ } else { |
+ GetInputMethod()->GetLogCollector()->AddLog( |
+ "Missing OnFocus call when activating."); |
sky
2016/01/08 16:51:58
What about the early return on 374 too?
Shu Chen
2016/01/09 01:46:02
Thanks for catching it. Log is added.
|
} |
} else { |
// If we're not active we need to deactivate the corresponding |