Index: ui/views/ime/input_method_bridge.h |
diff --git a/ui/views/ime/input_method_bridge.h b/ui/views/ime/input_method_bridge.h |
index 6e8994689f39080df590b213d2f95594b3ac16a8..0b26fd090e8460f0301b8297e8dbf58fdd9728f6 100644 |
--- a/ui/views/ime/input_method_bridge.h |
+++ b/ui/views/ime/input_method_bridge.h |
@@ -84,9 +84,15 @@ class InputMethodBridge : public InputMethodBase, |
ui::InputMethod* GetHostInputMethod() const; |
private: |
+ class HostObserver; |
+ |
void UpdateViewFocusState(); |
- ui::InputMethod* const host_; |
+ ui::InputMethod* host_; |
+ |
+ // An observer observing the host input method for cases that the host input |
+ // method is destroyed before this bridge input method. |
+ scoped_ptr<HostObserver> host_observer_; |
const bool shared_input_method_; |