| Index: ash/shell/keyboard_controller_proxy_stub.cc
|
| diff --git a/ash/shell/keyboard_controller_proxy_stub.cc b/ash/shell/keyboard_controller_proxy_stub.cc
|
| index 700c834365f02671dff6509ae3871363f809e74c..e980c4c7062dbb0473e0bf8e27fc05adc6ac10ca 100644
|
| --- a/ash/shell/keyboard_controller_proxy_stub.cc
|
| +++ b/ash/shell/keyboard_controller_proxy_stub.cc
|
| @@ -13,16 +13,18 @@ using namespace content;
|
|
|
| namespace ash {
|
|
|
| -KeyboardControllerProxyStub::KeyboardControllerProxyStub() {
|
| +KeyboardControllerProxyStub::KeyboardControllerProxyStub() : keyboard_(NULL) {
|
| }
|
|
|
| KeyboardControllerProxyStub::~KeyboardControllerProxyStub() {
|
| }
|
|
|
| aura::Window* KeyboardControllerProxyStub::GetKeyboardWindow() {
|
| - aura::Window* window = new aura::Window(&delegate_);
|
| - window->Init(ui::LAYER_NOT_DRAWN);
|
| - return window;
|
| + if (!keyboard_) {
|
| + keyboard_ = new aura::Window(&delegate_);
|
| + keyboard_->Init(ui::LAYER_NOT_DRAWN);
|
| + }
|
| + return keyboard_;
|
| }
|
|
|
| BrowserContext* KeyboardControllerProxyStub::GetBrowserContext() {
|
|
|