summaryrefslogtreecommitdiffstats
path: root/chrome/test/base/ui_test_utils_aura.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/base/ui_test_utils_aura.cc')
-rw-r--r--chrome/test/base/ui_test_utils_aura.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/test/base/ui_test_utils_aura.cc b/chrome/test/base/ui_test_utils_aura.cc
index b62ac21..cd1b549 100644
--- a/chrome/test/base/ui_test_utils_aura.cc
+++ b/chrome/test/base/ui_test_utils_aura.cc
@@ -20,9 +20,10 @@ bool IsViewFocused(const Browser* browser, ViewID vid) {
DCHECK(browser_window);
gfx::NativeWindow window = browser_window->GetNativeHandle();
DCHECK(window);
- views::Widget* widget = views::Widget::GetTopLevelWidgetForNativeView(window);
+ const views::Widget* widget =
+ views::Widget::GetTopLevelWidgetForNativeView(window);
DCHECK(widget);
- views::FocusManager* focus_manager = widget->GetFocusManager();
+ const views::FocusManager* focus_manager = widget->GetFocusManager();
DCHECK(focus_manager);
return focus_manager->GetFocusedView()->id() == vid;
}