Index: ui/aura/test/test_window_delegate.cc |
diff --git a/ui/aura/test/test_window_delegate.cc b/ui/aura/test/test_window_delegate.cc |
index f75d8274ac8500b35d51d75ee7e7c5dc783d3df0..cba700c269fd67f94905bdbac5b90bc7bbbe14f5 100644 |
--- a/ui/aura/test/test_window_delegate.cc |
+++ b/ui/aura/test/test_window_delegate.cc |
@@ -20,7 +20,8 @@ namespace test { |
TestWindowDelegate::TestWindowDelegate() |
: window_component_(HTCLIENT), |
- delete_on_destroyed_(false) { |
+ delete_on_destroyed_(false), |
+ can_focus_(true) { |
} |
TestWindowDelegate::~TestWindowDelegate() { |
@@ -60,7 +61,7 @@ bool TestWindowDelegate::ShouldDescendIntoChildForEventHandling( |
} |
bool TestWindowDelegate::CanFocus() { |
- return true; |
+ return can_focus_; |
} |
void TestWindowDelegate::OnCaptureLost() { |